@atlaskit/editor-plugin-paste 31.2.1 → 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,20 @@
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
+
12
+ ## 31.2.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 31.2.1
4
19
 
5
20
  ### Patch Changes
package/compass.yml CHANGED
@@ -35,7 +35,7 @@ customFields:
35
35
  value: true
36
36
  - name: Reviewer Selection Mechanism
37
37
  type: text
38
- value: random(2)
38
+ value: randomTZIgnored(2)
39
39
  - name: Required Reviewer Approvals
40
40
  type: number
41
41
  value: 1
@@ -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 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
- }
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 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
- }
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 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
- }
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.1",
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",
@@ -31,33 +31,33 @@
31
31
  "@atlaskit/editor-plugin-extension": "^33.0.0",
32
32
  "@atlaskit/editor-plugin-feature-flags": "^29.0.0",
33
33
  "@atlaskit/editor-plugin-list": "^32.0.0",
34
- "@atlaskit/editor-plugin-media": "^32.2.0",
35
- "@atlaskit/editor-plugin-mentions": "^32.1.0",
34
+ "@atlaskit/editor-plugin-media": "^32.3.0",
35
+ "@atlaskit/editor-plugin-mentions": "^32.2.0",
36
36
  "@atlaskit/editor-prosemirror": "^9.0.0",
37
37
  "@atlaskit/editor-tables": "^3.2.0",
38
38
  "@atlaskit/flag": "^19.0.0",
39
39
  "@atlaskit/icon": "^38.0.0",
40
40
  "@atlaskit/insm": "^3.0.0",
41
41
  "@atlaskit/linking-common": "^13.0.0",
42
- "@atlaskit/media-client": "^39.3.0",
42
+ "@atlaskit/media-client": "^39.4.0",
43
43
  "@atlaskit/media-common": "^14.7.0",
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": "^259.0.0",
48
- "@atlaskit/tokens": "^20.9.0",
47
+ "@atlaskit/tmp-editor-statsig": "^260.0.0",
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.9.0",
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.9.0",
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
  },