@atlaskit/editor-plugin-paste 31.2.3 → 31.2.5
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
|
@@ -184,8 +184,11 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
184
184
|
var html = event.clipboardData.getData('text/html');
|
|
185
185
|
var uriList = event.clipboardData.getData('text/uri-list');
|
|
186
186
|
|
|
187
|
-
// Extract clientId
|
|
188
|
-
|
|
187
|
+
// Extract clientId values from pasted HTML for media cross-product copy/paste
|
|
188
|
+
// This must be done before ProseMirror parses the HTML, as clientId is not stored in ADF
|
|
189
|
+
if ((0, _fg.fg)('platform_media_cross_client_copy_with_auth')) {
|
|
190
|
+
(0, _clientIdCache.extractClientIdsFromHtml)(html);
|
|
191
|
+
}
|
|
189
192
|
// Links copied from iOS Safari share button only have the text/uri-list data type
|
|
190
193
|
// ProseMirror don't do anything with this type so we want to make our own open slice
|
|
191
194
|
// with url as text content so link is pasted inline
|
|
@@ -149,8 +149,11 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
149
149
|
const html = event.clipboardData.getData('text/html');
|
|
150
150
|
const uriList = event.clipboardData.getData('text/uri-list');
|
|
151
151
|
|
|
152
|
-
// Extract clientId
|
|
153
|
-
|
|
152
|
+
// Extract clientId values from pasted HTML for media cross-product copy/paste
|
|
153
|
+
// This must be done before ProseMirror parses the HTML, as clientId is not stored in ADF
|
|
154
|
+
if (fg('platform_media_cross_client_copy_with_auth')) {
|
|
155
|
+
extractClientIdsFromHtml(html);
|
|
156
|
+
}
|
|
154
157
|
// Links copied from iOS Safari share button only have the text/uri-list data type
|
|
155
158
|
// ProseMirror don't do anything with this type so we want to make our own open slice
|
|
156
159
|
// with url as text content so link is pasted inline
|
|
@@ -176,8 +176,11 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
176
176
|
var html = event.clipboardData.getData('text/html');
|
|
177
177
|
var uriList = event.clipboardData.getData('text/uri-list');
|
|
178
178
|
|
|
179
|
-
// Extract clientId
|
|
180
|
-
|
|
179
|
+
// Extract clientId values from pasted HTML for media cross-product copy/paste
|
|
180
|
+
// This must be done before ProseMirror parses the HTML, as clientId is not stored in ADF
|
|
181
|
+
if (fg('platform_media_cross_client_copy_with_auth')) {
|
|
182
|
+
extractClientIdsFromHtml(html);
|
|
183
|
+
}
|
|
181
184
|
// Links copied from iOS Safari share button only have the text/uri-list data type
|
|
182
185
|
// ProseMirror don't do anything with this type so we want to make our own open slice
|
|
183
186
|
// with url as text content so link is pasted inline
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "31.2.
|
|
3
|
+
"version": "31.2.5",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^262.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^20.11.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"lodash": "^4.17.21",
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"platform_editor_link_paste_select_all": {
|
|
73
73
|
"type": "boolean"
|
|
74
74
|
},
|
|
75
|
+
"platform_media_cross_client_copy_with_auth": {
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
},
|
|
75
78
|
"platform_editor_paste_strip_invalid_block_marks": {
|
|
76
79
|
"type": "boolean"
|
|
77
80
|
},
|