@atlaskit/editor-plugin-paste 1.2.2 → 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 +255 -249
- 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 +5 -7
- 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,644 +1,650 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 1.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.2.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
13
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
14
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
15
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
16
|
+
- Updated dependencies
|
|
11
17
|
|
|
12
18
|
## 1.2.1
|
|
13
19
|
|
|
14
20
|
### Patch Changes
|
|
15
21
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
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
|
|
20
26
|
|
|
21
27
|
## 1.2.0
|
|
22
28
|
|
|
23
29
|
### Minor Changes
|
|
24
30
|
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
28
34
|
|
|
29
35
|
### Patch Changes
|
|
30
36
|
|
|
31
|
-
-
|
|
37
|
+
- Updated dependencies
|
|
32
38
|
|
|
33
39
|
## 1.1.10
|
|
34
40
|
|
|
35
41
|
### Patch Changes
|
|
36
42
|
|
|
37
|
-
-
|
|
43
|
+
- Updated dependencies
|
|
38
44
|
|
|
39
45
|
## 1.1.9
|
|
40
46
|
|
|
41
47
|
### Patch Changes
|
|
42
48
|
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
46
52
|
|
|
47
53
|
## 1.1.8
|
|
48
54
|
|
|
49
55
|
### Patch Changes
|
|
50
56
|
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
|
54
60
|
|
|
55
61
|
## 1.1.7
|
|
56
62
|
|
|
57
63
|
### Patch Changes
|
|
58
64
|
|
|
59
|
-
-
|
|
65
|
+
- Updated dependencies
|
|
60
66
|
|
|
61
67
|
## 1.1.6
|
|
62
68
|
|
|
63
69
|
### Patch Changes
|
|
64
70
|
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
|
70
76
|
|
|
71
77
|
## 1.1.5
|
|
72
78
|
|
|
73
79
|
### Patch Changes
|
|
74
80
|
|
|
75
|
-
-
|
|
81
|
+
- Updated dependencies
|
|
76
82
|
|
|
77
83
|
## 1.1.4
|
|
78
84
|
|
|
79
85
|
### Patch Changes
|
|
80
86
|
|
|
81
|
-
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
|
84
90
|
|
|
85
91
|
## 1.1.3
|
|
86
92
|
|
|
87
93
|
### Patch Changes
|
|
88
94
|
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
|
92
98
|
|
|
93
99
|
## 1.1.2
|
|
94
100
|
|
|
95
101
|
### Patch Changes
|
|
96
102
|
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
|
100
106
|
|
|
101
107
|
## 1.1.1
|
|
102
108
|
|
|
103
109
|
### Patch Changes
|
|
104
110
|
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
|
108
114
|
|
|
109
115
|
## 1.1.0
|
|
110
116
|
|
|
111
117
|
### Minor Changes
|
|
112
118
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
|
116
122
|
|
|
117
123
|
### Patch Changes
|
|
118
124
|
|
|
119
|
-
-
|
|
125
|
+
- Updated dependencies
|
|
120
126
|
|
|
121
127
|
## 1.0.18
|
|
122
128
|
|
|
123
129
|
### Patch Changes
|
|
124
130
|
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
|
128
134
|
|
|
129
135
|
## 1.0.17
|
|
130
136
|
|
|
131
137
|
### Patch Changes
|
|
132
138
|
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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`)
|
|
137
143
|
|
|
138
144
|
## 1.0.16
|
|
139
145
|
|
|
140
146
|
### Patch Changes
|
|
141
147
|
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
-
|
|
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
|
|
146
152
|
|
|
147
153
|
## 1.0.15
|
|
148
154
|
|
|
149
155
|
### Patch Changes
|
|
150
156
|
|
|
151
|
-
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
|
154
160
|
|
|
155
161
|
## 1.0.14
|
|
156
162
|
|
|
157
163
|
### Patch Changes
|
|
158
164
|
|
|
159
|
-
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
-
|
|
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
|
|
164
170
|
|
|
165
171
|
## 1.0.13
|
|
166
172
|
|
|
167
173
|
### Patch Changes
|
|
168
174
|
|
|
169
|
-
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
|
176
182
|
|
|
177
183
|
## 1.0.12
|
|
178
184
|
|
|
179
185
|
### Patch Changes
|
|
180
186
|
|
|
181
|
-
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
-
|
|
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
|
|
185
191
|
|
|
186
192
|
## 1.0.11
|
|
187
193
|
|
|
188
194
|
### Patch Changes
|
|
189
195
|
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
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.
|
|
193
199
|
|
|
194
200
|
## 1.0.10
|
|
195
201
|
|
|
196
202
|
### Patch Changes
|
|
197
203
|
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
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`
|
|
201
207
|
|
|
202
208
|
## 1.0.9
|
|
203
209
|
|
|
204
210
|
### Patch Changes
|
|
205
211
|
|
|
206
|
-
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
|
209
215
|
|
|
210
216
|
## 1.0.8
|
|
211
217
|
|
|
212
218
|
### Patch Changes
|
|
213
219
|
|
|
214
|
-
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
-
|
|
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
|
|
218
224
|
|
|
219
225
|
## 1.0.7
|
|
220
226
|
|
|
221
227
|
### Patch Changes
|
|
222
228
|
|
|
223
|
-
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
-
|
|
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
|
|
233
239
|
|
|
234
240
|
## 1.0.6
|
|
235
241
|
|
|
236
242
|
### Patch Changes
|
|
237
243
|
|
|
238
|
-
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
|
242
248
|
|
|
243
249
|
## 1.0.5
|
|
244
250
|
|
|
245
251
|
### Patch Changes
|
|
246
252
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
|
250
256
|
|
|
251
257
|
## 1.0.4
|
|
252
258
|
|
|
253
259
|
### Patch Changes
|
|
254
260
|
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
-
|
|
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
|
|
259
265
|
|
|
260
266
|
## 1.0.3
|
|
261
267
|
|
|
262
268
|
### Patch Changes
|
|
263
269
|
|
|
264
|
-
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
|
267
273
|
|
|
268
274
|
## 1.0.2
|
|
269
275
|
|
|
270
276
|
### Patch Changes
|
|
271
277
|
|
|
272
|
-
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
-
|
|
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
|
|
276
282
|
|
|
277
283
|
## 1.0.1
|
|
278
284
|
|
|
279
285
|
### Patch Changes
|
|
280
286
|
|
|
281
|
-
-
|
|
287
|
+
- Updated dependencies
|
|
282
288
|
|
|
283
289
|
## 1.0.0
|
|
284
290
|
|
|
285
291
|
### Major Changes
|
|
286
292
|
|
|
287
|
-
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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.
|
|
291
297
|
|
|
292
298
|
### Patch Changes
|
|
293
299
|
|
|
294
|
-
-
|
|
300
|
+
- Updated dependencies
|
|
295
301
|
|
|
296
302
|
## 0.2.19
|
|
297
303
|
|
|
298
304
|
### Patch Changes
|
|
299
305
|
|
|
300
|
-
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
|
303
309
|
|
|
304
310
|
## 0.2.18
|
|
305
311
|
|
|
306
312
|
### Patch Changes
|
|
307
313
|
|
|
308
|
-
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
|
311
317
|
|
|
312
318
|
## 0.2.17
|
|
313
319
|
|
|
314
320
|
### Patch Changes
|
|
315
321
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
|
|
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
|
|
319
325
|
|
|
320
326
|
## 0.2.16
|
|
321
327
|
|
|
322
328
|
### Patch Changes
|
|
323
329
|
|
|
324
|
-
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
-
|
|
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
|
|
328
334
|
|
|
329
335
|
## 0.2.15
|
|
330
336
|
|
|
331
337
|
### Patch Changes
|
|
332
338
|
|
|
333
|
-
-
|
|
339
|
+
- Updated dependencies
|
|
334
340
|
|
|
335
341
|
## 0.2.14
|
|
336
342
|
|
|
337
343
|
### Patch Changes
|
|
338
344
|
|
|
339
|
-
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
|
342
348
|
|
|
343
349
|
## 0.2.13
|
|
344
350
|
|
|
345
351
|
### Patch Changes
|
|
346
352
|
|
|
347
|
-
-
|
|
353
|
+
- Updated dependencies
|
|
348
354
|
|
|
349
355
|
## 0.2.12
|
|
350
356
|
|
|
351
357
|
### Patch Changes
|
|
352
358
|
|
|
353
|
-
-
|
|
354
|
-
|
|
355
|
-
|
|
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
|
|
356
362
|
|
|
357
363
|
## 0.2.11
|
|
358
364
|
|
|
359
365
|
### Patch Changes
|
|
360
366
|
|
|
361
|
-
-
|
|
367
|
+
- Updated dependencies
|
|
362
368
|
|
|
363
369
|
## 0.2.10
|
|
364
370
|
|
|
365
371
|
### Patch Changes
|
|
366
372
|
|
|
367
|
-
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
|
370
376
|
|
|
371
377
|
## 0.2.9
|
|
372
378
|
|
|
373
379
|
### Patch Changes
|
|
374
380
|
|
|
375
|
-
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
-
|
|
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
|
|
382
388
|
|
|
383
389
|
## 0.2.8
|
|
384
390
|
|
|
385
391
|
### Patch Changes
|
|
386
392
|
|
|
387
|
-
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
|
390
396
|
|
|
391
397
|
## 0.2.7
|
|
392
398
|
|
|
393
399
|
### Patch Changes
|
|
394
400
|
|
|
395
|
-
-
|
|
396
|
-
|
|
397
|
-
|
|
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
|
|
398
404
|
|
|
399
405
|
## 0.2.6
|
|
400
406
|
|
|
401
407
|
### Patch Changes
|
|
402
408
|
|
|
403
|
-
-
|
|
409
|
+
- Updated dependencies
|
|
404
410
|
|
|
405
411
|
## 0.2.5
|
|
406
412
|
|
|
407
413
|
### Patch Changes
|
|
408
414
|
|
|
409
|
-
-
|
|
415
|
+
- Updated dependencies
|
|
410
416
|
|
|
411
417
|
## 0.2.4
|
|
412
418
|
|
|
413
419
|
### Patch Changes
|
|
414
420
|
|
|
415
|
-
-
|
|
416
|
-
|
|
417
|
-
|
|
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
|
|
418
424
|
|
|
419
425
|
## 0.2.3
|
|
420
426
|
|
|
421
427
|
### Patch Changes
|
|
422
428
|
|
|
423
|
-
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
-
|
|
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
|
|
430
436
|
|
|
431
437
|
## 0.2.2
|
|
432
438
|
|
|
433
439
|
### Patch Changes
|
|
434
440
|
|
|
435
|
-
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
-
|
|
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
|
|
439
445
|
|
|
440
446
|
## 0.2.1
|
|
441
447
|
|
|
442
448
|
### Patch Changes
|
|
443
449
|
|
|
444
|
-
-
|
|
450
|
+
- Updated dependencies
|
|
445
451
|
|
|
446
452
|
## 0.2.0
|
|
447
453
|
|
|
448
454
|
### Minor Changes
|
|
449
455
|
|
|
450
|
-
-
|
|
451
|
-
|
|
452
|
-
|
|
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
|
|
453
459
|
|
|
454
460
|
## 0.1.22
|
|
455
461
|
|
|
456
462
|
### Patch Changes
|
|
457
463
|
|
|
458
|
-
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
-
|
|
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
|
|
462
468
|
|
|
463
469
|
## 0.1.21
|
|
464
470
|
|
|
465
471
|
### Patch Changes
|
|
466
472
|
|
|
467
|
-
-
|
|
473
|
+
- Updated dependencies
|
|
468
474
|
|
|
469
475
|
## 0.1.20
|
|
470
476
|
|
|
471
477
|
### Patch Changes
|
|
472
478
|
|
|
473
|
-
-
|
|
479
|
+
- Updated dependencies
|
|
474
480
|
|
|
475
481
|
## 0.1.19
|
|
476
482
|
|
|
477
483
|
### Patch Changes
|
|
478
484
|
|
|
479
|
-
-
|
|
480
|
-
|
|
481
|
-
|
|
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
|
|
482
488
|
|
|
483
489
|
## 0.1.18
|
|
484
490
|
|
|
485
491
|
### Patch Changes
|
|
486
492
|
|
|
487
|
-
-
|
|
493
|
+
- Updated dependencies
|
|
488
494
|
|
|
489
495
|
## 0.1.17
|
|
490
496
|
|
|
491
497
|
### Patch Changes
|
|
492
498
|
|
|
493
|
-
-
|
|
499
|
+
- Updated dependencies
|
|
494
500
|
|
|
495
501
|
## 0.1.16
|
|
496
502
|
|
|
497
503
|
### Patch Changes
|
|
498
504
|
|
|
499
|
-
-
|
|
500
|
-
|
|
501
|
-
|
|
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
|
|
502
508
|
|
|
503
509
|
## 0.1.15
|
|
504
510
|
|
|
505
511
|
### Patch Changes
|
|
506
512
|
|
|
507
|
-
-
|
|
508
|
-
|
|
509
|
-
|
|
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
|
|
510
516
|
|
|
511
517
|
## 0.1.14
|
|
512
518
|
|
|
513
519
|
### Patch Changes
|
|
514
520
|
|
|
515
|
-
-
|
|
521
|
+
- Updated dependencies
|
|
516
522
|
|
|
517
523
|
## 0.1.13
|
|
518
524
|
|
|
519
525
|
### Patch Changes
|
|
520
526
|
|
|
521
|
-
-
|
|
527
|
+
- Updated dependencies
|
|
522
528
|
|
|
523
529
|
## 0.1.12
|
|
524
530
|
|
|
525
531
|
### Patch Changes
|
|
526
532
|
|
|
527
|
-
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
-
|
|
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
|
|
531
537
|
|
|
532
538
|
## 0.1.11
|
|
533
539
|
|
|
534
540
|
### Patch Changes
|
|
535
541
|
|
|
536
|
-
-
|
|
537
|
-
|
|
538
|
-
|
|
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
|
|
539
545
|
|
|
540
546
|
## 0.1.10
|
|
541
547
|
|
|
542
548
|
### Patch Changes
|
|
543
549
|
|
|
544
|
-
-
|
|
545
|
-
|
|
546
|
-
|
|
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
|
|
547
553
|
|
|
548
554
|
## 0.1.9
|
|
549
555
|
|
|
550
556
|
### Patch Changes
|
|
551
557
|
|
|
552
|
-
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
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.
|
|
576
582
|
|
|
577
583
|
## 0.1.8
|
|
578
584
|
|
|
579
585
|
### Patch Changes
|
|
580
586
|
|
|
581
|
-
-
|
|
587
|
+
- Updated dependencies
|
|
582
588
|
|
|
583
589
|
## 0.1.7
|
|
584
590
|
|
|
585
591
|
### Patch Changes
|
|
586
592
|
|
|
587
|
-
-
|
|
593
|
+
- Updated dependencies
|
|
588
594
|
|
|
589
595
|
## 0.1.6
|
|
590
596
|
|
|
591
597
|
### Patch Changes
|
|
592
598
|
|
|
593
|
-
-
|
|
599
|
+
- Updated dependencies
|
|
594
600
|
|
|
595
601
|
## 0.1.5
|
|
596
602
|
|
|
597
603
|
### Patch Changes
|
|
598
604
|
|
|
599
|
-
-
|
|
600
|
-
|
|
601
|
-
|
|
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.
|
|
602
608
|
|
|
603
609
|
## 0.1.4
|
|
604
610
|
|
|
605
611
|
### Patch Changes
|
|
606
612
|
|
|
607
|
-
-
|
|
613
|
+
- Updated dependencies
|
|
608
614
|
|
|
609
615
|
## 0.1.3
|
|
610
616
|
|
|
611
617
|
### Patch Changes
|
|
612
618
|
|
|
613
|
-
-
|
|
614
|
-
|
|
615
|
-
|
|
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
|
|
616
622
|
|
|
617
623
|
## 0.1.2
|
|
618
624
|
|
|
619
625
|
### Patch Changes
|
|
620
626
|
|
|
621
|
-
-
|
|
627
|
+
- Updated dependencies
|
|
622
628
|
|
|
623
629
|
## 0.1.1
|
|
624
630
|
|
|
625
631
|
### Patch Changes
|
|
626
632
|
|
|
627
|
-
-
|
|
633
|
+
- Updated dependencies
|
|
628
634
|
|
|
629
635
|
## 0.1.0
|
|
630
636
|
|
|
631
637
|
### Minor Changes
|
|
632
638
|
|
|
633
|
-
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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
|
|
637
643
|
|
|
638
644
|
## 0.0.1
|
|
639
645
|
|
|
640
646
|
### Patch Changes
|
|
641
647
|
|
|
642
|
-
-
|
|
643
|
-
|
|
644
|
-
|
|
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",
|
|
@@ -57,12 +57,11 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@af/visual-regression": "*",
|
|
59
59
|
"@atlaskit/adf-schema": "^36.10.7",
|
|
60
|
-
"@atlaskit/editor-plugin-block-type": "^3.
|
|
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
|
|