@atlaskit/editor-plugin-paste 7.0.3 → 7.1.0

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,16 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 7.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2d1c925457b44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2d1c925457b44) -
8
+ EDITOR-1915 generate a new localId on paste syncblock(s)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 7.0.3
4
15
 
5
16
  ### Patch Changes
@@ -583,6 +583,9 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
583
583
  slice = (0, _transforms.transformSingleColumnLayout)(slice, schema);
584
584
  }
585
585
  slice = (0, _transforms.transformSliceToRemoveMacroId)(slice, schema);
586
+ if ((0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true)) {
587
+ slice = (0, _transforms.transformToNewReferenceSyncBlock)(slice, schema);
588
+ }
586
589
  return slice;
587
590
  },
588
591
  transformPastedHTML: function transformPastedHTML(html) {
@@ -6,7 +6,7 @@ import { getExtensionAutoConvertersFromProvider } from '@atlaskit/editor-common/
6
6
  import { isPastedFile as isPastedFileFromEvent, md } from '@atlaskit/editor-common/paste';
7
7
  import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
8
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
9
- import { transformSingleColumnLayout, transformSingleLineCodeBlockToCodeMark, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro, transformSliceToRemoveMacroId } from '@atlaskit/editor-common/transforms';
9
+ import { transformSingleColumnLayout, transformSingleLineCodeBlockToCodeMark, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro, transformSliceToRemoveMacroId, transformToNewReferenceSyncBlock } from '@atlaskit/editor-common/transforms';
10
10
  import { containsAnyAnnotations, extractSliceFromStep, linkifyContent, mapChildren } from '@atlaskit/editor-common/utils';
11
11
  import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
12
12
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
@@ -544,6 +544,9 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
544
544
  slice = transformSingleColumnLayout(slice, schema);
545
545
  }
546
546
  slice = transformSliceToRemoveMacroId(slice, schema);
547
+ if (expValEquals('platform_synced_block', 'isEnabled', true)) {
548
+ slice = transformToNewReferenceSyncBlock(slice, schema);
549
+ }
547
550
  return slice;
548
551
  },
549
552
  transformPastedHTML(html) {
@@ -11,7 +11,7 @@ import { getExtensionAutoConvertersFromProvider } from '@atlaskit/editor-common/
11
11
  import { isPastedFile as isPastedFileFromEvent, md } from '@atlaskit/editor-common/paste';
12
12
  import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
13
13
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
14
- import { transformSingleColumnLayout, transformSingleLineCodeBlockToCodeMark, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro, transformSliceToRemoveMacroId } from '@atlaskit/editor-common/transforms';
14
+ import { transformSingleColumnLayout, transformSingleLineCodeBlockToCodeMark, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro, transformSliceToRemoveMacroId, transformToNewReferenceSyncBlock } from '@atlaskit/editor-common/transforms';
15
15
  import { containsAnyAnnotations, extractSliceFromStep, linkifyContent, mapChildren } from '@atlaskit/editor-common/utils';
16
16
  import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
17
17
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
@@ -574,6 +574,9 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
574
574
  slice = transformSingleColumnLayout(slice, schema);
575
575
  }
576
576
  slice = transformSliceToRemoveMacroId(slice, schema);
577
+ if (expValEquals('platform_synced_block', 'isEnabled', true)) {
578
+ slice = transformToNewReferenceSyncBlock(slice, schema);
579
+ }
577
580
  return slice;
578
581
  },
579
582
  transformPastedHTML: function transformPastedHTML(html) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "7.0.3",
3
+ "version": "7.1.0",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/media-client": "^35.5.0",
45
45
  "@atlaskit/media-common": "^12.3.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^13.4.0",
47
+ "@atlaskit/tmp-editor-statsig": "^13.6.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "lodash": "^4.17.21",
50
50
  "uuid": "^3.1.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^110.7.0",
53
+ "@atlaskit/editor-common": "^110.9.0",
54
54
  "react": "^18.2.0",
55
55
  "react-dom": "^18.2.0"
56
56
  },