@atlaskit/editor-plugin-paste 16.0.7 → 16.0.9
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,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 16.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.0.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b8598a6de03d4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b8598a6de03d4) -
|
|
14
|
+
[EDITOR-8613] clean up resize kill switches for bugfixes
|
|
15
|
+
|
|
3
16
|
## 16.0.7
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -554,10 +554,10 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
554
554
|
// Check that we are pasting in a location that does not accept
|
|
555
555
|
// breakout marks, if so we strip the mark and paste. Note that
|
|
556
556
|
// breakout marks are only valid in the root document.
|
|
557
|
-
if (
|
|
557
|
+
if (selectionParentType !== state.schema.nodes.doc &&
|
|
558
558
|
// When pasting at a root GapCursor, selection depth is 0 and there is no
|
|
559
559
|
// parent node to resolve. Treat it as doc-level so valid breakout marks stay.
|
|
560
|
-
|
|
560
|
+
selectionDepth !== 0) {
|
|
561
561
|
var sliceCopy = _model.Slice.fromJSON(state.schema, slice.toJSON() || {});
|
|
562
562
|
sliceCopy.content.descendants(function (node) {
|
|
563
563
|
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
|
@@ -515,10 +515,10 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
515
515
|
// Check that we are pasting in a location that does not accept
|
|
516
516
|
// breakout marks, if so we strip the mark and paste. Note that
|
|
517
517
|
// breakout marks are only valid in the root document.
|
|
518
|
-
if (
|
|
518
|
+
if (selectionParentType !== state.schema.nodes.doc &&
|
|
519
519
|
// When pasting at a root GapCursor, selection depth is 0 and there is no
|
|
520
520
|
// parent node to resolve. Treat it as doc-level so valid breakout marks stay.
|
|
521
|
-
|
|
521
|
+
selectionDepth !== 0) {
|
|
522
522
|
const sliceCopy = Slice.fromJSON(state.schema, slice.toJSON() || {});
|
|
523
523
|
sliceCopy.content.descendants(node => {
|
|
524
524
|
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
|
@@ -546,10 +546,10 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
546
546
|
// Check that we are pasting in a location that does not accept
|
|
547
547
|
// breakout marks, if so we strip the mark and paste. Note that
|
|
548
548
|
// breakout marks are only valid in the root document.
|
|
549
|
-
if (
|
|
549
|
+
if (selectionParentType !== state.schema.nodes.doc &&
|
|
550
550
|
// When pasting at a root GapCursor, selection depth is 0 and there is no
|
|
551
551
|
// parent node to resolve. Treat it as doc-level so valid breakout marks stay.
|
|
552
|
-
|
|
552
|
+
selectionDepth !== 0) {
|
|
553
553
|
var sliceCopy = Slice.fromJSON(state.schema, slice.toJSON() || {});
|
|
554
554
|
sliceCopy.content.descendants(function (node) {
|
|
555
555
|
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.9",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
44
44
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^153.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^16.7.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"lodash": "^4.17.21",
|
|
@@ -121,9 +121,6 @@
|
|
|
121
121
|
},
|
|
122
122
|
"platform_editor_flexible_list_kill_switch_1": {
|
|
123
123
|
"type": "boolean"
|
|
124
|
-
},
|
|
125
|
-
"platform_editor_lovability_resize_patch_2": {
|
|
126
|
-
"type": "boolean"
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
126
|
}
|