@atlaskit/editor-plugin-paste 31.2.2 → 31.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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 31.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ca46449f94e5b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ca46449f94e5b) -
|
|
8
|
+
Remove the fully rolled-out `platform_media_cross_client_copy_with_auth` gate, retaining client-ID
|
|
9
|
+
propagation through media copy, preview URLs, and editor paste.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 31.2.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -184,11 +184,8 @@ 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
|
-
|
|
189
|
-
if ((0, _fg.fg)('platform_media_cross_client_copy_with_auth')) {
|
|
190
|
-
(0, _clientIdCache.extractClientIdsFromHtml)(html);
|
|
191
|
-
}
|
|
187
|
+
// Extract clientId before ProseMirror parses HTML, since clientId is not stored in ADF.
|
|
188
|
+
(0, _clientIdCache.extractClientIdsFromHtml)(html);
|
|
192
189
|
// Links copied from iOS Safari share button only have the text/uri-list data type
|
|
193
190
|
// ProseMirror don't do anything with this type so we want to make our own open slice
|
|
194
191
|
// with url as text content so link is pasted inline
|
|
@@ -149,11 +149,8 @@ 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
|
-
|
|
154
|
-
if (fg('platform_media_cross_client_copy_with_auth')) {
|
|
155
|
-
extractClientIdsFromHtml(html);
|
|
156
|
-
}
|
|
152
|
+
// Extract clientId before ProseMirror parses HTML, since clientId is not stored in ADF.
|
|
153
|
+
extractClientIdsFromHtml(html);
|
|
157
154
|
// Links copied from iOS Safari share button only have the text/uri-list data type
|
|
158
155
|
// ProseMirror don't do anything with this type so we want to make our own open slice
|
|
159
156
|
// with url as text content so link is pasted inline
|
|
@@ -176,11 +176,8 @@ 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
|
-
|
|
181
|
-
if (fg('platform_media_cross_client_copy_with_auth')) {
|
|
182
|
-
extractClientIdsFromHtml(html);
|
|
183
|
-
}
|
|
179
|
+
// Extract clientId before ProseMirror parses HTML, since clientId is not stored in ADF.
|
|
180
|
+
extractClientIdsFromHtml(html);
|
|
184
181
|
// Links copied from iOS Safari share button only have the text/uri-list data type
|
|
185
182
|
// ProseMirror don't do anything with this type so we want to make our own open slice
|
|
186
183
|
// 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.3",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
47
47
|
"@atlaskit/tmp-editor-statsig": "^260.0.0",
|
|
48
|
-
"@atlaskit/tokens": "^20.
|
|
48
|
+
"@atlaskit/tokens": "^20.11.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"lodash": "^4.17.21",
|
|
51
51
|
"uuid": "^11.1.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^134.
|
|
54
|
+
"@atlaskit/editor-common": "^134.16.0",
|
|
55
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
57
57
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^134.
|
|
60
|
+
"@atlaskit/editor-common": "^134.16.0",
|
|
61
61
|
"react": "^19.2.0",
|
|
62
62
|
"react-dom": "^19.2.0",
|
|
63
63
|
"react-intl": "^7.0.0"
|
|
@@ -72,9 +72,6 @@
|
|
|
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
|
-
},
|
|
78
75
|
"platform_editor_paste_strip_invalid_block_marks": {
|
|
79
76
|
"type": "boolean"
|
|
80
77
|
},
|