@atlaskit/editor-plugin-paste 13.0.3 → 13.0.4

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,13 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 13.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`302b888acacab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/302b888acacab) -
8
+ cleanup platform_editor_inline_media_copy_paste_fix feature flag
9
+ - Updated dependencies
10
+
3
11
  ## 13.0.3
4
12
 
5
13
  ### Patch Changes
@@ -204,7 +204,7 @@ var unwrapNestedMediaElements = exports.unwrapNestedMediaElements = function unw
204
204
  // Bypass mediaInline images - don't hoist images that are inside a mediaInline wrapper
205
205
  // as this would break parseDOM matching for mediaInline nodes
206
206
  // We remove the img from the DOM since mediaInline is a leaf node with no content
207
- if (imageTag.closest('[data-node-type="mediaInline"]') && (0, _expValEquals.expValEquals)('platform_editor_inline_media_copy_paste_fix', 'isEnabled', true)) {
207
+ if (imageTag.closest('[data-node-type="mediaInline"]')) {
208
208
  // Remove the img element so ProseMirror doesn't try to parse it
209
209
  // mediaInline nodes are leaf nodes and cannot have children
210
210
  imageTag.remove();
@@ -200,7 +200,7 @@ export const unwrapNestedMediaElements = html => {
200
200
  // Bypass mediaInline images - don't hoist images that are inside a mediaInline wrapper
201
201
  // as this would break parseDOM matching for mediaInline nodes
202
202
  // We remove the img from the DOM since mediaInline is a leaf node with no content
203
- if (imageTag.closest('[data-node-type="mediaInline"]') && expValEquals('platform_editor_inline_media_copy_paste_fix', 'isEnabled', true)) {
203
+ if (imageTag.closest('[data-node-type="mediaInline"]')) {
204
204
  // Remove the img element so ProseMirror doesn't try to parse it
205
205
  // mediaInline nodes are leaf nodes and cannot have children
206
206
  imageTag.remove();
@@ -195,7 +195,7 @@ export var unwrapNestedMediaElements = function unwrapNestedMediaElements(html)
195
195
  // Bypass mediaInline images - don't hoist images that are inside a mediaInline wrapper
196
196
  // as this would break parseDOM matching for mediaInline nodes
197
197
  // We remove the img from the DOM since mediaInline is a leaf node with no content
198
- if (imageTag.closest('[data-node-type="mediaInline"]') && expValEquals('platform_editor_inline_media_copy_paste_fix', 'isEnabled', true)) {
198
+ if (imageTag.closest('[data-node-type="mediaInline"]')) {
199
199
  // Remove the img element so ProseMirror doesn't try to parse it
200
200
  // mediaInline nodes are leaf nodes and cannot have children
201
201
  imageTag.remove();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "13.0.3",
3
+ "version": "13.0.4",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/media-common": "^14.0.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.0.0",
43
43
  "@atlaskit/prosemirror-history": "^1.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^107.1.0",
44
+ "@atlaskit/tmp-editor-statsig": "^108.0.0",
45
45
  "@atlaskit/tokens": "^14.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "lodash": "^4.17.21",
@@ -115,9 +115,6 @@
115
115
  "platform_media_cross_client_copy_with_auth": {
116
116
  "type": "boolean"
117
117
  },
118
- "platform_editor_inline_media_copy_paste_fix": {
119
- "type": "boolean"
120
- },
121
118
  "platform_synced_block_unsupported_products": {
122
119
  "type": "boolean"
123
120
  },