@atlaskit/editor-plugin-paste 0.2.2 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+ - [#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
9
+ - Updated dependencies
10
+
3
11
  ## 0.2.2
4
12
 
5
13
  ### Patch Changes
@@ -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);
@@ -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);
@@ -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.2",
3
+ "version": "0.2.3",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/editor-common": "^76.33.0",
35
+ "@atlaskit/editor-common": "^76.35.0",
36
36
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
37
37
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
38
38
  "@atlaskit/editor-plugin-annotation": "^0.1.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/editor-plugin-card": "^0.15.0",
41
41
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
42
42
  "@atlaskit/editor-plugin-list": "^3.1.0",
43
- "@atlaskit/editor-plugin-media": "^0.9.0",
43
+ "@atlaskit/editor-plugin-media": "^0.10.0",
44
44
  "@atlaskit/editor-prosemirror": "1.1.0",
45
45
  "@atlaskit/editor-tables": "^2.3.0",
46
46
  "@atlaskit/media-client": "^26.1.0",
@@ -55,10 +55,10 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@af/visual-regression": "*",
58
- "@atlaskit/adf-schema": "^35.2.0",
58
+ "@atlaskit/adf-schema": "^35.3.0",
59
59
  "@atlaskit/editor-plugin-block-type": "^3.0.0",
60
60
  "@atlaskit/editor-plugin-history": "^0.1.0",
61
- "@atlaskit/editor-plugin-type-ahead": "^0.8.0",
61
+ "@atlaskit/editor-plugin-type-ahead": "^0.9.0",
62
62
  "@atlaskit/ssr": "*",
63
63
  "@atlaskit/visual-regression": "*",
64
64
  "@atlaskit/webdriver-runner": "*",