@atlaskit/editor-plugin-paste 20.0.5 → 20.0.6
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 20.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`56ed7cf145315`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56ed7cf145315) -
|
|
8
|
+
Cleanup experiment platform_editor_fix_header_paste_in_panel and permanently support pasting
|
|
9
|
+
headings into panels.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 20.0.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -157,7 +157,7 @@ function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
|
|
|
157
157
|
var sliceIsInvalid = false;
|
|
158
158
|
var sliceHasTask = false;
|
|
159
159
|
slice.content.nodesBetween(0, slice.content.size, function (node) {
|
|
160
|
-
if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !
|
|
160
|
+
if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !selectionIsPanel || node.type === listItem) {
|
|
161
161
|
sliceIsInvalid = true;
|
|
162
162
|
}
|
|
163
163
|
if (selectionIsPanel && node.type === taskList) {
|
|
@@ -125,7 +125,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
125
125
|
let sliceIsInvalid = false;
|
|
126
126
|
let sliceHasTask = false;
|
|
127
127
|
slice.content.nodesBetween(0, slice.content.size, node => {
|
|
128
|
-
if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !
|
|
128
|
+
if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !selectionIsPanel || node.type === listItem) {
|
|
129
129
|
sliceIsInvalid = true;
|
|
130
130
|
}
|
|
131
131
|
if (selectionIsPanel && node.type === taskList) {
|
|
@@ -128,7 +128,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
128
128
|
var sliceIsInvalid = false;
|
|
129
129
|
var sliceHasTask = false;
|
|
130
130
|
slice.content.nodesBetween(0, slice.content.size, function (node) {
|
|
131
|
-
if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !
|
|
131
|
+
if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !selectionIsPanel || node.type === listItem) {
|
|
132
132
|
sliceIsInvalid = true;
|
|
133
133
|
}
|
|
134
134
|
if (selectionIsPanel && node.type === taskList) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.6",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^203.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^19.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"lodash": "^4.17.21",
|
|
51
51
|
"uuid": "^11.1.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^123.
|
|
54
|
+
"@atlaskit/editor-common": "^123.8.0",
|
|
55
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
57
57
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|