@atlaskit/editor-plugin-paste 13.0.2 → 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,19 @@
|
|
|
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
|
+
|
|
11
|
+
## 13.0.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 13.0.2
|
|
4
18
|
|
|
5
19
|
### 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"]')
|
|
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"]')
|
|
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"]')
|
|
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
|
+
"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",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-schema": "^55.
|
|
22
|
+
"@atlaskit/adf-schema": "^55.2.0",
|
|
23
23
|
"@atlaskit/adf-utils": "^20.0.0",
|
|
24
24
|
"@atlaskit/code": "^18.0.0",
|
|
25
25
|
"@atlaskit/editor-markdown-transformer": "^6.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/editor-plugin-feature-flags": "^11.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-list": "^14.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-media": "^14.0.0",
|
|
34
|
-
"@atlaskit/editor-plugin-mentions": "^14.
|
|
34
|
+
"@atlaskit/editor-plugin-mentions": "^14.2.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
37
37
|
"@atlaskit/flag": "^18.0.0",
|
|
@@ -41,14 +41,14 @@
|
|
|
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": "^
|
|
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",
|
|
48
48
|
"uuid": "^3.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^116.
|
|
51
|
+
"@atlaskit/editor-common": "^116.3.0",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -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
|
},
|