@atlaskit/editor-plugin-paste 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/handlers.js +2 -2
- package/dist/es2019/handlers.js +2 -2
- package/dist/esm/handlers.js +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802) [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) - Ensure all editor plugins are marked as singletons
|
|
8
|
+
|
|
9
|
+
## 0.2.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#64592](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64592) [`21e21d79ce84`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/21e21d79ce84) - fix copy pasting content from expands inside a table so only selected content is pasted
|
|
14
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031) [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) - ED-21609 Update adf-schema to 35.3.0
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 0.2.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/handlers.js
CHANGED
|
@@ -605,7 +605,7 @@ function handleMediaSingle(inputMethod, insertMediaAsMediaSingle) {
|
|
|
605
605
|
var checkExpand = function checkExpand(slice) {
|
|
606
606
|
var hasExpand = false;
|
|
607
607
|
slice.content.forEach(function (node) {
|
|
608
|
-
if (node.type.name === 'expand') {
|
|
608
|
+
if (node.type.name === 'expand' || node.type.name === 'nestedExpand') {
|
|
609
609
|
hasExpand = true;
|
|
610
610
|
}
|
|
611
611
|
});
|
|
@@ -624,7 +624,7 @@ function handleExpandPasteInTable(slice) {
|
|
|
624
624
|
var tr = state.tr;
|
|
625
625
|
var hasExpand = false;
|
|
626
626
|
var newSlice = (0, _utils.mapSlice)(slice, function (maybeNode) {
|
|
627
|
-
if (maybeNode.type === expand) {
|
|
627
|
+
if (maybeNode.type === expand || maybeNode.type === nestedExpand) {
|
|
628
628
|
hasExpand = true;
|
|
629
629
|
try {
|
|
630
630
|
return nestedExpand.createChecked(maybeNode.attrs, maybeNode.content, maybeNode.marks);
|
package/dist/es2019/handlers.js
CHANGED
|
@@ -591,7 +591,7 @@ export function handleMediaSingle(inputMethod, insertMediaAsMediaSingle) {
|
|
|
591
591
|
const checkExpand = slice => {
|
|
592
592
|
let hasExpand = false;
|
|
593
593
|
slice.content.forEach(node => {
|
|
594
|
-
if (node.type.name === 'expand') {
|
|
594
|
+
if (node.type.name === 'expand' || node.type.name === 'nestedExpand') {
|
|
595
595
|
hasExpand = true;
|
|
596
596
|
}
|
|
597
597
|
});
|
|
@@ -613,7 +613,7 @@ export function handleExpandPasteInTable(slice) {
|
|
|
613
613
|
} = state;
|
|
614
614
|
let hasExpand = false;
|
|
615
615
|
const newSlice = mapSlice(slice, maybeNode => {
|
|
616
|
-
if (maybeNode.type === expand) {
|
|
616
|
+
if (maybeNode.type === expand || maybeNode.type === nestedExpand) {
|
|
617
617
|
hasExpand = true;
|
|
618
618
|
try {
|
|
619
619
|
return nestedExpand.createChecked(maybeNode.attrs, maybeNode.content, maybeNode.marks);
|
package/dist/esm/handlers.js
CHANGED
|
@@ -584,7 +584,7 @@ export function handleMediaSingle(inputMethod, insertMediaAsMediaSingle) {
|
|
|
584
584
|
var checkExpand = function checkExpand(slice) {
|
|
585
585
|
var hasExpand = false;
|
|
586
586
|
slice.content.forEach(function (node) {
|
|
587
|
-
if (node.type.name === 'expand') {
|
|
587
|
+
if (node.type.name === 'expand' || node.type.name === 'nestedExpand') {
|
|
588
588
|
hasExpand = true;
|
|
589
589
|
}
|
|
590
590
|
});
|
|
@@ -603,7 +603,7 @@ export function handleExpandPasteInTable(slice) {
|
|
|
603
603
|
var tr = state.tr;
|
|
604
604
|
var hasExpand = false;
|
|
605
605
|
var newSlice = mapSlice(slice, function (maybeNode) {
|
|
606
|
-
if (maybeNode.type === expand) {
|
|
606
|
+
if (maybeNode.type === expand || maybeNode.type === nestedExpand) {
|
|
607
607
|
hasExpand = true;
|
|
608
608
|
try {
|
|
609
609
|
return nestedExpand.createChecked(maybeNode.attrs, maybeNode.content, maybeNode.marks);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Lego",
|
|
12
|
+
"singleton": true,
|
|
12
13
|
"inPublicMirror": false,
|
|
13
14
|
"releaseModel": "continuous",
|
|
14
15
|
"runReact18": false
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
".": "./src/index.ts"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@atlaskit/editor-common": "^76.
|
|
36
|
+
"@atlaskit/editor-common": "^76.35.0",
|
|
36
37
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
37
38
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
38
39
|
"@atlaskit/editor-plugin-annotation": "^0.1.0",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"@atlaskit/editor-plugin-card": "^0.15.0",
|
|
41
42
|
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
42
43
|
"@atlaskit/editor-plugin-list": "^3.1.0",
|
|
43
|
-
"@atlaskit/editor-plugin-media": "^0.
|
|
44
|
+
"@atlaskit/editor-plugin-media": "^0.10.0",
|
|
44
45
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
45
46
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
46
47
|
"@atlaskit/media-client": "^26.1.0",
|
|
@@ -55,13 +56,12 @@
|
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@af/visual-regression": "*",
|
|
58
|
-
"@atlaskit/adf-schema": "^35.
|
|
59
|
+
"@atlaskit/adf-schema": "^35.3.0",
|
|
59
60
|
"@atlaskit/editor-plugin-block-type": "^3.0.0",
|
|
60
61
|
"@atlaskit/editor-plugin-history": "^0.1.0",
|
|
61
|
-
"@atlaskit/editor-plugin-type-ahead": "^0.
|
|
62
|
+
"@atlaskit/editor-plugin-type-ahead": "^0.9.0",
|
|
62
63
|
"@atlaskit/ssr": "*",
|
|
63
64
|
"@atlaskit/visual-regression": "*",
|
|
64
|
-
"@atlaskit/webdriver-runner": "*",
|
|
65
65
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
66
66
|
"@atlassian/feature-flags-test-utils": "^0.1.1",
|
|
67
67
|
"@testing-library/react": "^12.1.5",
|