@atlaskit/editor-plugin-paste 2.2.2 → 2.3.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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#114421](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114421)
|
|
8
|
+
[`1b137b82b89d3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1b137b82b89d3) -
|
|
9
|
+
[ECOHELP-54944] Strip macro IDs on paste for extensions and inline extensions
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 2.2.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -513,6 +513,9 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
513
513
|
if ((0, _platformFeatureFlags.fg)('platform_editor_advanced_layouts_post_fix_patch_2')) {
|
|
514
514
|
slice = (0, _transforms.transformSingleColumnLayout)(slice, schema);
|
|
515
515
|
}
|
|
516
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_macroid_reset_for_ext_on_paste')) {
|
|
517
|
+
slice = (0, _transforms.transformSliceToRemoveMacroId)(slice, schema);
|
|
518
|
+
}
|
|
516
519
|
return slice;
|
|
517
520
|
},
|
|
518
521
|
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 { transformSingleLineCodeBlockToCodeMark, transformSingleColumnLayout, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro } from '@atlaskit/editor-common/transforms';
|
|
9
|
+
import { transformSingleLineCodeBlockToCodeMark, transformSingleColumnLayout, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro, transformSliceToRemoveMacroId } 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';
|
|
@@ -487,6 +487,9 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
487
487
|
if (fg('platform_editor_advanced_layouts_post_fix_patch_2')) {
|
|
488
488
|
slice = transformSingleColumnLayout(slice, schema);
|
|
489
489
|
}
|
|
490
|
+
if (fg('platform_editor_macroid_reset_for_ext_on_paste')) {
|
|
491
|
+
slice = transformSliceToRemoveMacroId(slice, schema);
|
|
492
|
+
}
|
|
490
493
|
return slice;
|
|
491
494
|
},
|
|
492
495
|
transformPastedHTML(html) {
|
|
@@ -8,7 +8,7 @@ import { getExtensionAutoConvertersFromProvider } from '@atlaskit/editor-common/
|
|
|
8
8
|
import { isPastedFile as isPastedFileFromEvent, md } from '@atlaskit/editor-common/paste';
|
|
9
9
|
import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
|
|
10
10
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
11
|
-
import { transformSingleLineCodeBlockToCodeMark, transformSingleColumnLayout, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro } from '@atlaskit/editor-common/transforms';
|
|
11
|
+
import { transformSingleLineCodeBlockToCodeMark, transformSingleColumnLayout, transformSliceNestedExpandToExpand, transformSliceToDecisionList, transformSliceToJoinAdjacentCodeBlocks, transformSliceToRemoveLegacyContentMacro, transformSliceToRemoveMacroId } from '@atlaskit/editor-common/transforms';
|
|
12
12
|
import { containsAnyAnnotations, extractSliceFromStep, linkifyContent, mapChildren } from '@atlaskit/editor-common/utils';
|
|
13
13
|
import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
|
|
14
14
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -505,6 +505,9 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
505
505
|
if (fg('platform_editor_advanced_layouts_post_fix_patch_2')) {
|
|
506
506
|
slice = transformSingleColumnLayout(slice, schema);
|
|
507
507
|
}
|
|
508
|
+
if (fg('platform_editor_macroid_reset_for_ext_on_paste')) {
|
|
509
|
+
slice = transformSliceToRemoveMacroId(slice, schema);
|
|
510
|
+
}
|
|
508
511
|
return slice;
|
|
509
512
|
},
|
|
510
513
|
transformPastedHTML: function transformPastedHTML(html) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
35
35
|
"@atlaskit/code": "^15.6.9",
|
|
36
|
-
"@atlaskit/editor-common": "^99.
|
|
36
|
+
"@atlaskit/editor-common": "^99.16.0",
|
|
37
37
|
"@atlaskit/editor-markdown-transformer": "^5.15.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
39
39
|
"@atlaskit/editor-plugin-annotation": "^1.28.0",
|
|
@@ -132,6 +132,9 @@
|
|
|
132
132
|
"platform_editor_legacy_content_macro": {
|
|
133
133
|
"type": "boolean"
|
|
134
134
|
},
|
|
135
|
+
"platform_editor_macroid_reset_for_ext_on_paste": {
|
|
136
|
+
"type": "boolean"
|
|
137
|
+
},
|
|
135
138
|
"platform_editor_legacy_content_macro_insert": {
|
|
136
139
|
"type": "boolean"
|
|
137
140
|
}
|