@atlaskit/editor-plugin-paste 1.2.1 → 1.2.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 +16 -16
- package/CHANGELOG.md +260 -245
- package/LICENSE.md +6 -8
- package/dist/cjs/edge-cases/lists.js +2 -2
- package/dist/es2019/edge-cases/lists.js +2 -2
- package/dist/esm/edge-cases/lists.js +2 -2
- package/dist/types/edge-cases/index.d.ts +1 -1
- package/dist/types/edge-cases/lists.d.ts +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/edge-cases/index.d.ts +1 -1
- package/dist/types-ts4.5/edge-cases/lists.d.ts +3 -3
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +6 -8
- package/report.api.md +34 -33
package/.eslintrc.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
rules: {
|
|
3
|
+
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
4
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
5
|
+
'@typescript-eslint/ban-types': [
|
|
6
|
+
'error',
|
|
7
|
+
{
|
|
8
|
+
types: {
|
|
9
|
+
'React.FC':
|
|
10
|
+
'Please use types directly on props instead, and explicitly define children if required',
|
|
11
|
+
'React.FunctionalComponent':
|
|
12
|
+
'Please use types directly on props instead, and explicitly define children if required',
|
|
13
|
+
},
|
|
14
|
+
extendDefaults: false,
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
18
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,635 +1,650 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 1.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.2.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.2.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
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
|
|
25
|
+
- Updated dependencies
|
|
11
26
|
|
|
12
27
|
## 1.2.0
|
|
13
28
|
|
|
14
29
|
### Minor Changes
|
|
15
30
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
32
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
33
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
19
34
|
|
|
20
35
|
### Patch Changes
|
|
21
36
|
|
|
22
|
-
-
|
|
37
|
+
- Updated dependencies
|
|
23
38
|
|
|
24
39
|
## 1.1.10
|
|
25
40
|
|
|
26
41
|
### Patch Changes
|
|
27
42
|
|
|
28
|
-
-
|
|
43
|
+
- Updated dependencies
|
|
29
44
|
|
|
30
45
|
## 1.1.9
|
|
31
46
|
|
|
32
47
|
### Patch Changes
|
|
33
48
|
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
49
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
50
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
51
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
37
52
|
|
|
38
53
|
## 1.1.8
|
|
39
54
|
|
|
40
55
|
### Patch Changes
|
|
41
56
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
- [#98593](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98593)
|
|
58
|
+
[`1180c4cbf39b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1180c4cbf39b) -
|
|
59
|
+
ED-23263: Fixed pasting lose texts aligment
|
|
45
60
|
|
|
46
61
|
## 1.1.7
|
|
47
62
|
|
|
48
63
|
### Patch Changes
|
|
49
64
|
|
|
50
|
-
-
|
|
65
|
+
- Updated dependencies
|
|
51
66
|
|
|
52
67
|
## 1.1.6
|
|
53
68
|
|
|
54
69
|
### Patch Changes
|
|
55
70
|
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
71
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
72
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
73
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
74
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
75
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
61
76
|
|
|
62
77
|
## 1.1.5
|
|
63
78
|
|
|
64
79
|
### Patch Changes
|
|
65
80
|
|
|
66
|
-
-
|
|
81
|
+
- Updated dependencies
|
|
67
82
|
|
|
68
83
|
## 1.1.4
|
|
69
84
|
|
|
70
85
|
### Patch Changes
|
|
71
86
|
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
87
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
88
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
89
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
75
90
|
|
|
76
91
|
## 1.1.3
|
|
77
92
|
|
|
78
93
|
### Patch Changes
|
|
79
94
|
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
95
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
96
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
97
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
83
98
|
|
|
84
99
|
## 1.1.2
|
|
85
100
|
|
|
86
101
|
### Patch Changes
|
|
87
102
|
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
103
|
+
- [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007)
|
|
104
|
+
[`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) -
|
|
105
|
+
Migrated to the new button component
|
|
91
106
|
|
|
92
107
|
## 1.1.1
|
|
93
108
|
|
|
94
109
|
### Patch Changes
|
|
95
110
|
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
111
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
112
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
113
|
+
Updating adf-schema version to 35.10.0
|
|
99
114
|
|
|
100
115
|
## 1.1.0
|
|
101
116
|
|
|
102
117
|
### Minor Changes
|
|
103
118
|
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
|
|
119
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
120
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
121
|
+
bumped editor-prosemirror version to 4.0.0
|
|
107
122
|
|
|
108
123
|
### Patch Changes
|
|
109
124
|
|
|
110
|
-
-
|
|
125
|
+
- Updated dependencies
|
|
111
126
|
|
|
112
127
|
## 1.0.18
|
|
113
128
|
|
|
114
129
|
### Patch Changes
|
|
115
130
|
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
131
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
132
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
133
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
119
134
|
|
|
120
135
|
## 1.0.17
|
|
121
136
|
|
|
122
137
|
### Patch Changes
|
|
123
138
|
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
139
|
+
- [#92373](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92373)
|
|
140
|
+
[`6a480276c9b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a480276c9b0) -
|
|
141
|
+
[ux] [ED-23043] Plain text content leading and trailing whitespace is now preserved on paste
|
|
142
|
+
behind FF (`platform.editor.preserve-whitespace-clipboard-text-serialization`)
|
|
128
143
|
|
|
129
144
|
## 1.0.16
|
|
130
145
|
|
|
131
146
|
### Patch Changes
|
|
132
147
|
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
-
|
|
148
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
149
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
150
|
+
Bump ADF-schema package to version 35.0.0
|
|
151
|
+
- Updated dependencies
|
|
137
152
|
|
|
138
153
|
## 1.0.15
|
|
139
154
|
|
|
140
155
|
### Patch Changes
|
|
141
156
|
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
157
|
+
- [#89978](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89978)
|
|
158
|
+
[`6e7143622425`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e7143622425) -
|
|
159
|
+
fix paste markdown table into a table issue
|
|
145
160
|
|
|
146
161
|
## 1.0.14
|
|
147
162
|
|
|
148
163
|
### Patch Changes
|
|
149
164
|
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
-
|
|
165
|
+
- [#87898](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87898)
|
|
166
|
+
[`6d4009f72e36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d4009f72e36) -
|
|
167
|
+
[ux] [ED-22591] Fix pasting logic for lines with number and dot (but is not a list item) to retain
|
|
168
|
+
formatting and correct list conversion.
|
|
169
|
+
- Updated dependencies
|
|
155
170
|
|
|
156
171
|
## 1.0.13
|
|
157
172
|
|
|
158
173
|
### Patch Changes
|
|
159
174
|
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
175
|
+
- [#86222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86222)
|
|
176
|
+
[`0e1dc019f1cd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0e1dc019f1cd) -
|
|
177
|
+
Fix a table content paste issue when copy content from a table cell inside bodied extension
|
|
178
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
179
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
180
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
181
|
+
35.7.0 to 35.8.0
|
|
167
182
|
|
|
168
183
|
## 1.0.12
|
|
169
184
|
|
|
170
185
|
### Patch Changes
|
|
171
186
|
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
-
|
|
187
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
188
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
189
|
+
Bump adf-schema to 35.7.0
|
|
190
|
+
- Updated dependencies
|
|
176
191
|
|
|
177
192
|
## 1.0.11
|
|
178
193
|
|
|
179
194
|
### Patch Changes
|
|
180
195
|
|
|
181
|
-
-
|
|
182
|
-
|
|
183
|
-
|
|
196
|
+
- [#82819](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82819)
|
|
197
|
+
[`4d110826a9d6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4d110826a9d6) -
|
|
198
|
+
[ED-22608] Adds mentionIds to the pasted analytics event.
|
|
184
199
|
|
|
185
200
|
## 1.0.10
|
|
186
201
|
|
|
187
202
|
### Patch Changes
|
|
188
203
|
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
204
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
205
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
206
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
192
207
|
|
|
193
208
|
## 1.0.9
|
|
194
209
|
|
|
195
210
|
### Patch Changes
|
|
196
211
|
|
|
197
|
-
-
|
|
198
|
-
|
|
199
|
-
|
|
212
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
213
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
214
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
200
215
|
|
|
201
216
|
## 1.0.8
|
|
202
217
|
|
|
203
218
|
### Patch Changes
|
|
204
219
|
|
|
205
|
-
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
-
|
|
220
|
+
- [#78591](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78591)
|
|
221
|
+
[`578ff696d240`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/578ff696d240) -
|
|
222
|
+
ED-22330 Adapted paste logic for empty panels in MBE.
|
|
223
|
+
- Updated dependencies
|
|
209
224
|
|
|
210
225
|
## 1.0.7
|
|
211
226
|
|
|
212
227
|
### Patch Changes
|
|
213
228
|
|
|
214
|
-
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
-
|
|
229
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
230
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
231
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
232
|
+
- [#76560](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76560)
|
|
233
|
+
[`ecab0d093882`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ecab0d093882) -
|
|
234
|
+
Fixed misplaced cursor positon when code block is pasted into extended nested expand
|
|
235
|
+
- [#78176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78176)
|
|
236
|
+
[`7482f69bb25f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7482f69bb25f) -
|
|
237
|
+
ED-21833: Stop showing paste options toolbar for smart links
|
|
238
|
+
- Updated dependencies
|
|
224
239
|
|
|
225
240
|
## 1.0.6
|
|
226
241
|
|
|
227
242
|
### Patch Changes
|
|
228
243
|
|
|
229
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
244
|
+
- [#75436](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75436)
|
|
245
|
+
[`bfcf32bb4fa3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bfcf32bb4fa3) -
|
|
246
|
+
[ux] ED-21941 Disable resize/layout options for table, media and extension when added to MBE.
|
|
247
|
+
Table rendering fixed for Confluence editor
|
|
233
248
|
|
|
234
249
|
## 1.0.5
|
|
235
250
|
|
|
236
251
|
### Patch Changes
|
|
237
252
|
|
|
238
|
-
-
|
|
239
|
-
|
|
240
|
-
|
|
253
|
+
- [#75378](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75378)
|
|
254
|
+
[`caf4a7eff92d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/caf4a7eff92d) -
|
|
255
|
+
ED-22246 Fix pasting text into action/decision inside panel
|
|
241
256
|
|
|
242
257
|
## 1.0.4
|
|
243
258
|
|
|
244
259
|
### Patch Changes
|
|
245
260
|
|
|
246
|
-
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
-
|
|
261
|
+
- [#74662](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74662)
|
|
262
|
+
[`03889d5b1256`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/03889d5b1256) -
|
|
263
|
+
ED-22244 Allow copy paste of action within a panel into a panel
|
|
264
|
+
- Updated dependencies
|
|
250
265
|
|
|
251
266
|
## 1.0.3
|
|
252
267
|
|
|
253
268
|
### Patch Changes
|
|
254
269
|
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
270
|
+
- [#75368](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75368)
|
|
271
|
+
[`0a0d45e03ecf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0a0d45e03ecf) -
|
|
272
|
+
ED-22245: Fixing the bug to paste links inside nested codeblock
|
|
258
273
|
|
|
259
274
|
## 1.0.2
|
|
260
275
|
|
|
261
276
|
### Patch Changes
|
|
262
277
|
|
|
263
|
-
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
-
|
|
278
|
+
- [#74284](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74284)
|
|
279
|
+
[`c88cf104546f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c88cf104546f) -
|
|
280
|
+
fix copy paste issue in excel and numbers that paste table results in screenshot of table pasted
|
|
281
|
+
- Updated dependencies
|
|
267
282
|
|
|
268
283
|
## 1.0.1
|
|
269
284
|
|
|
270
285
|
### Patch Changes
|
|
271
286
|
|
|
272
|
-
-
|
|
287
|
+
- Updated dependencies
|
|
273
288
|
|
|
274
289
|
## 1.0.0
|
|
275
290
|
|
|
276
291
|
### Major Changes
|
|
277
292
|
|
|
278
|
-
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
293
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
294
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
295
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
296
|
+
is to address an issue with Jira plugin consumption.
|
|
282
297
|
|
|
283
298
|
### Patch Changes
|
|
284
299
|
|
|
285
|
-
-
|
|
300
|
+
- Updated dependencies
|
|
286
301
|
|
|
287
302
|
## 0.2.19
|
|
288
303
|
|
|
289
304
|
### Patch Changes
|
|
290
305
|
|
|
291
|
-
-
|
|
292
|
-
|
|
293
|
-
|
|
306
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
307
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
308
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
294
309
|
|
|
295
310
|
## 0.2.18
|
|
296
311
|
|
|
297
312
|
### Patch Changes
|
|
298
313
|
|
|
299
|
-
-
|
|
300
|
-
|
|
301
|
-
|
|
314
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
315
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
316
|
+
Updating adf-schema version to 35.5.1
|
|
302
317
|
|
|
303
318
|
## 0.2.17
|
|
304
319
|
|
|
305
320
|
### Patch Changes
|
|
306
321
|
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
|
|
322
|
+
- [#70164](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70164)
|
|
323
|
+
[`a6438ad5ed9d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a6438ad5ed9d) -
|
|
324
|
+
ED-21974 Pasting node into panel should replace the selected text
|
|
310
325
|
|
|
311
326
|
## 0.2.16
|
|
312
327
|
|
|
313
328
|
### Patch Changes
|
|
314
329
|
|
|
315
|
-
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
-
|
|
330
|
+
- [#69736](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69736)
|
|
331
|
+
[`febb7827b916`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/febb7827b916) -
|
|
332
|
+
ED-21619 Set correct cursor position on pasting a rule inside panel
|
|
333
|
+
- Updated dependencies
|
|
319
334
|
|
|
320
335
|
## 0.2.15
|
|
321
336
|
|
|
322
337
|
### Patch Changes
|
|
323
338
|
|
|
324
|
-
-
|
|
339
|
+
- Updated dependencies
|
|
325
340
|
|
|
326
341
|
## 0.2.14
|
|
327
342
|
|
|
328
343
|
### Patch Changes
|
|
329
344
|
|
|
330
|
-
-
|
|
331
|
-
|
|
332
|
-
|
|
345
|
+
- [#68219](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68219)
|
|
346
|
+
[`39c60998e4d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/39c60998e4d7) -
|
|
347
|
+
ED-21894 Allow partial taskLists to be copied and pasted into a listItem
|
|
333
348
|
|
|
334
349
|
## 0.2.13
|
|
335
350
|
|
|
336
351
|
### Patch Changes
|
|
337
352
|
|
|
338
|
-
-
|
|
353
|
+
- Updated dependencies
|
|
339
354
|
|
|
340
355
|
## 0.2.12
|
|
341
356
|
|
|
342
357
|
### Patch Changes
|
|
343
358
|
|
|
344
|
-
-
|
|
345
|
-
|
|
346
|
-
|
|
359
|
+
- [#68721](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68721)
|
|
360
|
+
[`0c420c1e6b96`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c420c1e6b96) -
|
|
361
|
+
ED-21618 Replace selected decision in panel on pasting another decision
|
|
347
362
|
|
|
348
363
|
## 0.2.11
|
|
349
364
|
|
|
350
365
|
### Patch Changes
|
|
351
366
|
|
|
352
|
-
-
|
|
367
|
+
- Updated dependencies
|
|
353
368
|
|
|
354
369
|
## 0.2.10
|
|
355
370
|
|
|
356
371
|
### Patch Changes
|
|
357
372
|
|
|
358
|
-
-
|
|
359
|
-
|
|
360
|
-
|
|
373
|
+
- [#67922](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67922)
|
|
374
|
+
[`cd95401d8cde`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd95401d8cde) -
|
|
375
|
+
ED-21865 Set correct cursor position when decision is pasted inside panel
|
|
361
376
|
|
|
362
377
|
## 0.2.9
|
|
363
378
|
|
|
364
379
|
### Patch Changes
|
|
365
380
|
|
|
366
|
-
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
-
|
|
381
|
+
- [#66826](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66826)
|
|
382
|
+
[`5e9f6778a15a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e9f6778a15a) -
|
|
383
|
+
[ux] resolved a bug where the cursor mispalced after pasting the media into the panel
|
|
384
|
+
- [#67283](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67283)
|
|
385
|
+
[`4f10a52c6e39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f10a52c6e39) -
|
|
386
|
+
ED-21613 handle incorrect cursor position - when task is copied into a list
|
|
387
|
+
- Updated dependencies
|
|
373
388
|
|
|
374
389
|
## 0.2.8
|
|
375
390
|
|
|
376
391
|
### Patch Changes
|
|
377
392
|
|
|
378
|
-
-
|
|
379
|
-
|
|
380
|
-
|
|
393
|
+
- [#66495](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66495)
|
|
394
|
+
[`8d310bc51505`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d310bc51505) -
|
|
395
|
+
ED-21623: Fixing paste behaviour for nested codeblock in panel
|
|
381
396
|
|
|
382
397
|
## 0.2.7
|
|
383
398
|
|
|
384
399
|
### Patch Changes
|
|
385
400
|
|
|
386
|
-
-
|
|
387
|
-
|
|
388
|
-
|
|
401
|
+
- [#64972](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64972)
|
|
402
|
+
[`a72ac4c06038`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a72ac4c06038) -
|
|
403
|
+
ED-21627 Fixed issue with parsing of task as string - when pasting into an existing task
|
|
389
404
|
|
|
390
405
|
## 0.2.6
|
|
391
406
|
|
|
392
407
|
### Patch Changes
|
|
393
408
|
|
|
394
|
-
-
|
|
409
|
+
- Updated dependencies
|
|
395
410
|
|
|
396
411
|
## 0.2.5
|
|
397
412
|
|
|
398
413
|
### Patch Changes
|
|
399
414
|
|
|
400
|
-
-
|
|
415
|
+
- Updated dependencies
|
|
401
416
|
|
|
402
417
|
## 0.2.4
|
|
403
418
|
|
|
404
419
|
### Patch Changes
|
|
405
420
|
|
|
406
|
-
-
|
|
407
|
-
|
|
408
|
-
|
|
421
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
422
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
423
|
+
Ensure all editor plugins are marked as singletons
|
|
409
424
|
|
|
410
425
|
## 0.2.3
|
|
411
426
|
|
|
412
427
|
### Patch Changes
|
|
413
428
|
|
|
414
|
-
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
-
|
|
429
|
+
- [#64592](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64592)
|
|
430
|
+
[`21e21d79ce84`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/21e21d79ce84) -
|
|
431
|
+
fix copy pasting content from expands inside a table so only selected content is pasted
|
|
432
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
433
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
434
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
435
|
+
- Updated dependencies
|
|
421
436
|
|
|
422
437
|
## 0.2.2
|
|
423
438
|
|
|
424
439
|
### Patch Changes
|
|
425
440
|
|
|
426
|
-
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
-
|
|
441
|
+
- [#64216](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64216)
|
|
442
|
+
[`582a3eef15ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/582a3eef15ae) -
|
|
443
|
+
ED-20824 Fix copy paste issues with multi-level list inside blockquote
|
|
444
|
+
- Updated dependencies
|
|
430
445
|
|
|
431
446
|
## 0.2.1
|
|
432
447
|
|
|
433
448
|
### Patch Changes
|
|
434
449
|
|
|
435
|
-
-
|
|
450
|
+
- Updated dependencies
|
|
436
451
|
|
|
437
452
|
## 0.2.0
|
|
438
453
|
|
|
439
454
|
### Minor Changes
|
|
440
455
|
|
|
441
|
-
-
|
|
442
|
-
|
|
443
|
-
|
|
456
|
+
- [#63830](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63830)
|
|
457
|
+
[`a21d2c99bd13`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a21d2c99bd13) -
|
|
458
|
+
Move code for editor paste plugin from editor-core to @atlaskit/editor-plugin-paste
|
|
444
459
|
|
|
445
460
|
## 0.1.22
|
|
446
461
|
|
|
447
462
|
### Patch Changes
|
|
448
463
|
|
|
449
|
-
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
-
|
|
464
|
+
- [#63348](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63348)
|
|
465
|
+
[`2d6eebf2ed74`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d6eebf2ed74) -
|
|
466
|
+
Extract annotation plugin from editor-core to @atlaskit/editor-plugin-annotation.
|
|
467
|
+
- Updated dependencies
|
|
453
468
|
|
|
454
469
|
## 0.1.21
|
|
455
470
|
|
|
456
471
|
### Patch Changes
|
|
457
472
|
|
|
458
|
-
-
|
|
473
|
+
- Updated dependencies
|
|
459
474
|
|
|
460
475
|
## 0.1.20
|
|
461
476
|
|
|
462
477
|
### Patch Changes
|
|
463
478
|
|
|
464
|
-
-
|
|
479
|
+
- Updated dependencies
|
|
465
480
|
|
|
466
481
|
## 0.1.19
|
|
467
482
|
|
|
468
483
|
### Patch Changes
|
|
469
484
|
|
|
470
|
-
-
|
|
471
|
-
|
|
472
|
-
|
|
485
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
486
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
487
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
473
488
|
|
|
474
489
|
## 0.1.18
|
|
475
490
|
|
|
476
491
|
### Patch Changes
|
|
477
492
|
|
|
478
|
-
-
|
|
493
|
+
- Updated dependencies
|
|
479
494
|
|
|
480
495
|
## 0.1.17
|
|
481
496
|
|
|
482
497
|
### Patch Changes
|
|
483
498
|
|
|
484
|
-
-
|
|
499
|
+
- Updated dependencies
|
|
485
500
|
|
|
486
501
|
## 0.1.16
|
|
487
502
|
|
|
488
503
|
### Patch Changes
|
|
489
504
|
|
|
490
|
-
-
|
|
491
|
-
|
|
492
|
-
|
|
505
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
506
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
507
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
493
508
|
|
|
494
509
|
## 0.1.15
|
|
495
510
|
|
|
496
511
|
### Patch Changes
|
|
497
512
|
|
|
498
|
-
-
|
|
499
|
-
|
|
500
|
-
|
|
513
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
514
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
515
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
501
516
|
|
|
502
517
|
## 0.1.14
|
|
503
518
|
|
|
504
519
|
### Patch Changes
|
|
505
520
|
|
|
506
|
-
-
|
|
521
|
+
- Updated dependencies
|
|
507
522
|
|
|
508
523
|
## 0.1.13
|
|
509
524
|
|
|
510
525
|
### Patch Changes
|
|
511
526
|
|
|
512
|
-
-
|
|
527
|
+
- Updated dependencies
|
|
513
528
|
|
|
514
529
|
## 0.1.12
|
|
515
530
|
|
|
516
531
|
### Patch Changes
|
|
517
532
|
|
|
518
|
-
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
-
|
|
533
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
534
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
535
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
536
|
+
- Updated dependencies
|
|
522
537
|
|
|
523
538
|
## 0.1.11
|
|
524
539
|
|
|
525
540
|
### Patch Changes
|
|
526
541
|
|
|
527
|
-
-
|
|
528
|
-
|
|
529
|
-
|
|
542
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
543
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
544
|
+
update ADF schema
|
|
530
545
|
|
|
531
546
|
## 0.1.10
|
|
532
547
|
|
|
533
548
|
### Patch Changes
|
|
534
549
|
|
|
535
|
-
-
|
|
536
|
-
|
|
537
|
-
|
|
550
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
551
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
552
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
538
553
|
|
|
539
554
|
## 0.1.9
|
|
540
555
|
|
|
541
556
|
### Patch Changes
|
|
542
557
|
|
|
543
|
-
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
558
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
559
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
560
|
+
feature flags plugin optional in all plugins including:
|
|
561
|
+
|
|
562
|
+
- analytics
|
|
563
|
+
- base
|
|
564
|
+
- card
|
|
565
|
+
- code-block
|
|
566
|
+
- expand
|
|
567
|
+
- extension
|
|
568
|
+
- floating-toolbar
|
|
569
|
+
- hyperlink
|
|
570
|
+
- insert-block
|
|
571
|
+
- layout
|
|
572
|
+
- layout
|
|
573
|
+
- list
|
|
574
|
+
- media
|
|
575
|
+
- paste
|
|
576
|
+
- rule
|
|
577
|
+
- table
|
|
578
|
+
- tasks-and-decisions
|
|
579
|
+
|
|
580
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
581
|
+
mandatory to be added to the preset.
|
|
567
582
|
|
|
568
583
|
## 0.1.8
|
|
569
584
|
|
|
570
585
|
### Patch Changes
|
|
571
586
|
|
|
572
|
-
-
|
|
587
|
+
- Updated dependencies
|
|
573
588
|
|
|
574
589
|
## 0.1.7
|
|
575
590
|
|
|
576
591
|
### Patch Changes
|
|
577
592
|
|
|
578
|
-
-
|
|
593
|
+
- Updated dependencies
|
|
579
594
|
|
|
580
595
|
## 0.1.6
|
|
581
596
|
|
|
582
597
|
### Patch Changes
|
|
583
598
|
|
|
584
|
-
-
|
|
599
|
+
- Updated dependencies
|
|
585
600
|
|
|
586
601
|
## 0.1.5
|
|
587
602
|
|
|
588
603
|
### Patch Changes
|
|
589
604
|
|
|
590
|
-
-
|
|
591
|
-
|
|
592
|
-
|
|
605
|
+
- [#43042](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43042)
|
|
606
|
+
[`fd547efa4e5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd547efa4e5) - Remove
|
|
607
|
+
`macro` editor plugin and migrate functionality into extension plugin.
|
|
593
608
|
|
|
594
609
|
## 0.1.4
|
|
595
610
|
|
|
596
611
|
### Patch Changes
|
|
597
612
|
|
|
598
|
-
-
|
|
613
|
+
- Updated dependencies
|
|
599
614
|
|
|
600
615
|
## 0.1.3
|
|
601
616
|
|
|
602
617
|
### Patch Changes
|
|
603
618
|
|
|
604
|
-
-
|
|
605
|
-
|
|
606
|
-
|
|
619
|
+
- [#42907](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42907)
|
|
620
|
+
[`0493f1968e6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0493f1968e6) - add
|
|
621
|
+
editor-plugin-list as a dependency
|
|
607
622
|
|
|
608
623
|
## 0.1.2
|
|
609
624
|
|
|
610
625
|
### Patch Changes
|
|
611
626
|
|
|
612
|
-
-
|
|
627
|
+
- Updated dependencies
|
|
613
628
|
|
|
614
629
|
## 0.1.1
|
|
615
630
|
|
|
616
631
|
### Patch Changes
|
|
617
632
|
|
|
618
|
-
-
|
|
633
|
+
- Updated dependencies
|
|
619
634
|
|
|
620
635
|
## 0.1.0
|
|
621
636
|
|
|
622
637
|
### Minor Changes
|
|
623
638
|
|
|
624
|
-
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
639
|
+
- [#41895](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41895)
|
|
640
|
+
[`96066a06792`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96066a06792) -
|
|
641
|
+
ED-20524: Adding shared state for paste plugin which will be used by new paste options toolbar
|
|
642
|
+
plugin
|
|
628
643
|
|
|
629
644
|
## 0.0.1
|
|
630
645
|
|
|
631
646
|
### Patch Changes
|
|
632
647
|
|
|
633
|
-
-
|
|
634
|
-
|
|
635
|
-
|
|
648
|
+
- [#41862](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41862)
|
|
649
|
+
[`668cb3bcd3a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/668cb3bcd3a) -
|
|
650
|
+
[ED-20519] Extract Paste Plugin: Moving the plugin type to a new package
|
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.
|
|
@@ -85,8 +85,8 @@ function insertSliceInsideOfPanelNodeSelected(panelNode) {
|
|
|
85
85
|
var insertPosition = $to.pos + 1;
|
|
86
86
|
|
|
87
87
|
/* Adapting above logic to handle MBE, as it currently assumes that slice can be safely inserted after the panel node, which is not the case for MBE
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
|
|
89
|
+
*/
|
|
90
90
|
if (schema && (0, _platformFeatureFlags.getBooleanFF)('platform.editor.multi-bodied-extension_0rygg')) {
|
|
91
91
|
var mbeParentOfPanel = (0, _utils2.findParentNodeOfType)(schema.nodes.multiBodiedExtension)(selection);
|
|
92
92
|
if (mbeParentOfPanel && !mbeParentOfPanel.node.type.validContent(_model.Fragment.from(slice.content))) {
|
|
@@ -91,8 +91,8 @@ export function insertSliceInsideOfPanelNodeSelected(panelNode) {
|
|
|
91
91
|
let insertPosition = $to.pos + 1;
|
|
92
92
|
|
|
93
93
|
/* Adapting above logic to handle MBE, as it currently assumes that slice can be safely inserted after the panel node, which is not the case for MBE
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
|
|
95
|
+
*/
|
|
96
96
|
if (schema && getBooleanFF('platform.editor.multi-bodied-extension_0rygg')) {
|
|
97
97
|
const mbeParentOfPanel = findParentNodeOfType(schema.nodes.multiBodiedExtension)(selection);
|
|
98
98
|
if (mbeParentOfPanel && !mbeParentOfPanel.node.type.validContent(Fragment.from(slice.content))) {
|
|
@@ -76,8 +76,8 @@ export function insertSliceInsideOfPanelNodeSelected(panelNode) {
|
|
|
76
76
|
var insertPosition = $to.pos + 1;
|
|
77
77
|
|
|
78
78
|
/* Adapting above logic to handle MBE, as it currently assumes that slice can be safely inserted after the panel node, which is not the case for MBE
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
If insertPosition is in MBE and current slice contains invalid content for MBE, we need to insert the slice after the MBE node
|
|
80
|
+
*/
|
|
81
81
|
if (schema && getBooleanFF('platform.editor.multi-bodied-extension_0rygg')) {
|
|
82
82
|
var mbeParentOfPanel = findParentNodeOfType(schema.nodes.multiBodiedExtension)(selection);
|
|
83
83
|
if (mbeParentOfPanel && !mbeParentOfPanel.node.type.validContent(Fragment.from(slice.content))) {
|
|
@@ -12,7 +12,7 @@ export declare function insertSliceForListsInsideBlockquote({ tr, slice, }: {
|
|
|
12
12
|
export declare function updateSelectionAfterReplace({ tr }: {
|
|
13
13
|
tr: Transaction;
|
|
14
14
|
}): Transaction | undefined;
|
|
15
|
-
export declare function insertSliceForTaskInsideList({ tr, slice
|
|
15
|
+
export declare function insertSliceForTaskInsideList({ tr, slice }: {
|
|
16
16
|
tr: Transaction;
|
|
17
17
|
slice: PMSlice;
|
|
18
18
|
}): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare function insertSliceIntoEmptyNode({ tr, slice
|
|
3
|
+
export declare function insertSliceIntoEmptyNode({ tr, slice }: {
|
|
4
4
|
tr: Transaction;
|
|
5
5
|
slice: Slice;
|
|
6
6
|
}): void;
|
|
7
|
-
export declare function insertSliceAtNodeEdge({ tr, slice
|
|
7
|
+
export declare function insertSliceAtNodeEdge({ tr, slice }: {
|
|
8
8
|
tr: Transaction;
|
|
9
9
|
slice: Slice;
|
|
10
10
|
}): void;
|
|
@@ -12,7 +12,7 @@ export declare function insertSliceIntoRangeSelectionInsideList({ tr, slice, }:
|
|
|
12
12
|
tr: Transaction;
|
|
13
13
|
slice: Slice;
|
|
14
14
|
}): Transaction | undefined;
|
|
15
|
-
export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema
|
|
15
|
+
export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema }: {
|
|
16
16
|
tr: Transaction;
|
|
17
17
|
slice: Slice;
|
|
18
18
|
schema?: Schema<any, any> | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted
|
|
1
|
+
export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted } from './types';
|
|
2
2
|
export { pastePlugin } from './plugin';
|
|
@@ -12,7 +12,7 @@ export declare function insertSliceForListsInsideBlockquote({ tr, slice, }: {
|
|
|
12
12
|
export declare function updateSelectionAfterReplace({ tr }: {
|
|
13
13
|
tr: Transaction;
|
|
14
14
|
}): Transaction | undefined;
|
|
15
|
-
export declare function insertSliceForTaskInsideList({ tr, slice
|
|
15
|
+
export declare function insertSliceForTaskInsideList({ tr, slice }: {
|
|
16
16
|
tr: Transaction;
|
|
17
17
|
slice: PMSlice;
|
|
18
18
|
}): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Node as PMNode, Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare function insertSliceIntoEmptyNode({ tr, slice
|
|
3
|
+
export declare function insertSliceIntoEmptyNode({ tr, slice }: {
|
|
4
4
|
tr: Transaction;
|
|
5
5
|
slice: Slice;
|
|
6
6
|
}): void;
|
|
7
|
-
export declare function insertSliceAtNodeEdge({ tr, slice
|
|
7
|
+
export declare function insertSliceAtNodeEdge({ tr, slice }: {
|
|
8
8
|
tr: Transaction;
|
|
9
9
|
slice: Slice;
|
|
10
10
|
}): void;
|
|
@@ -12,7 +12,7 @@ export declare function insertSliceIntoRangeSelectionInsideList({ tr, slice, }:
|
|
|
12
12
|
tr: Transaction;
|
|
13
13
|
slice: Slice;
|
|
14
14
|
}): Transaction | undefined;
|
|
15
|
-
export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema
|
|
15
|
+
export declare function insertSliceInsideOfPanelNodeSelected(panelNode: PMNode): ({ tr, slice, schema }: {
|
|
16
16
|
tr: Transaction;
|
|
17
17
|
slice: Slice;
|
|
18
18
|
schema?: Schema<any, any> | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted
|
|
1
|
+
export type { PastePlugin, PastePluginOptions, PastePluginState, LastContentPasted } from './types';
|
|
2
2
|
export { pastePlugin } from './plugin';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
37
37
|
"@atlaskit/editor-markdown-transformer": "^5.6.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-annotation": "^1.9.0",
|
|
40
40
|
"@atlaskit/editor-plugin-better-type-history": "^1.2.0",
|
|
41
|
-
"@atlaskit/editor-plugin-card": "^
|
|
41
|
+
"@atlaskit/editor-plugin-card": "^2.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-list": "^3.3.0",
|
|
44
44
|
"@atlaskit/editor-plugin-media": "^1.20.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
46
46
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
47
|
-
"@atlaskit/media-client": "^27.
|
|
47
|
+
"@atlaskit/media-client": "^27.2.0",
|
|
48
48
|
"@atlaskit/media-common": "^11.2.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,13 +56,12 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@af/visual-regression": "*",
|
|
59
|
-
"@atlaskit/adf-schema": "^36.
|
|
60
|
-
"@atlaskit/editor-plugin-block-type": "^3.
|
|
59
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
60
|
+
"@atlaskit/editor-plugin-block-type": "^3.5.0",
|
|
61
61
|
"@atlaskit/editor-plugin-history": "^1.1.0",
|
|
62
62
|
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
63
63
|
"@atlaskit/ssr": "*",
|
|
64
64
|
"@atlaskit/visual-regression": "*",
|
|
65
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
66
65
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
67
66
|
"@testing-library/react": "^12.1.5",
|
|
68
67
|
"react-dom": "^16.8.0",
|
|
@@ -110,7 +109,6 @@
|
|
|
110
109
|
"@atlassian/tangerine/project-structure"
|
|
111
110
|
]
|
|
112
111
|
},
|
|
113
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
114
112
|
"platform-feature-flags": {
|
|
115
113
|
"platform.editor.media.extended-resize-experience": {
|
|
116
114
|
"type": "boolean"
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-paste"
|
|
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
|
|
@@ -30,49 +31,49 @@ import type { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
30
31
|
|
|
31
32
|
// @public (undocumented)
|
|
32
33
|
export type LastContentPasted = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
isPlainText: boolean;
|
|
35
|
+
text?: string;
|
|
36
|
+
isShiftPressed: boolean;
|
|
37
|
+
pasteStartPos: number;
|
|
38
|
+
pasteEndPos: number;
|
|
39
|
+
pastedSlice: Slice;
|
|
40
|
+
pastedAt: number;
|
|
41
|
+
pasteSource: PasteSource;
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
// @public (undocumented)
|
|
44
45
|
export type PastePlugin = NextEditorPlugin<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
'paste',
|
|
47
|
+
{
|
|
48
|
+
pluginConfiguration: PastePluginOptions;
|
|
49
|
+
dependencies: [
|
|
50
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
51
|
+
OptionalPlugin<ListPlugin>,
|
|
52
|
+
BetterTypeHistoryPlugin,
|
|
53
|
+
OptionalPlugin<CardPlugin>,
|
|
54
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
55
|
+
OptionalPlugin<MediaPlugin>,
|
|
56
|
+
OptionalPlugin<ExtensionPlugin>,
|
|
57
|
+
];
|
|
58
|
+
sharedState: {
|
|
59
|
+
lastContentPasted: LastContentPasted | null;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
61
62
|
>;
|
|
62
63
|
|
|
63
64
|
// @public (undocumented)
|
|
64
65
|
export type PastePluginOptions = {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
cardOptions?: CardOptions;
|
|
67
|
+
sanitizePrivateContent?: boolean;
|
|
67
68
|
};
|
|
68
69
|
|
|
69
70
|
// @public (undocumented)
|
|
70
71
|
export interface PastePluginState {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
// (undocumented)
|
|
73
|
+
lastContentPasted: LastContentPasted | null;
|
|
74
|
+
pastedMacroPositions: {
|
|
75
|
+
[key: string]: number;
|
|
76
|
+
};
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
// (No @packageDocumentation comment for this package)
|
|
@@ -86,7 +87,7 @@ export interface PastePluginState {
|
|
|
86
87
|
|
|
87
88
|
```json
|
|
88
89
|
{
|
|
89
|
-
|
|
90
|
+
"react": "^16.8.0"
|
|
90
91
|
}
|
|
91
92
|
```
|
|
92
93
|
|