@atlaskit/editor-plugin-media 2.3.9 → 2.3.10
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-media
|
|
2
2
|
|
|
3
|
+
## 2.3.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#129550](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/129550)
|
|
8
|
+
[`bee10fefc48ef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bee10fefc48ef) -
|
|
9
|
+
[ED-26955] Update check for external media
|
|
10
|
+
|
|
3
11
|
## 2.3.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -118,7 +118,9 @@ var getLinkingDropdownOptions = exports.getLinkingDropdownOptions = function get
|
|
|
118
118
|
var selectedNodeTypeSingle = mediaNode === null || mediaNode === void 0 ? void 0 : mediaNode.attrs.__fileMimeType;
|
|
119
119
|
mediaType = getMediaType(selectedNodeTypeSingle);
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
|
|
122
|
+
// Only show link dropdown option for images and external media (shown as images)
|
|
123
|
+
if (mediaType !== 'image' && (mediaNode === null || mediaNode === void 0 ? void 0 : mediaNode.attrs.type) !== 'external') {
|
|
122
124
|
return [];
|
|
123
125
|
}
|
|
124
126
|
if (mediaLinkingState && mediaLinkingState.editable) {
|
|
@@ -117,7 +117,9 @@ export const getLinkingDropdownOptions = (editorState, intl, mediaLinkingState,
|
|
|
117
117
|
const selectedNodeTypeSingle = mediaNode === null || mediaNode === void 0 ? void 0 : mediaNode.attrs.__fileMimeType;
|
|
118
118
|
mediaType = getMediaType(selectedNodeTypeSingle);
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
|
|
121
|
+
// Only show link dropdown option for images and external media (shown as images)
|
|
122
|
+
if (mediaType !== 'image' && (mediaNode === null || mediaNode === void 0 ? void 0 : mediaNode.attrs.type) !== 'external') {
|
|
121
123
|
return [];
|
|
122
124
|
}
|
|
123
125
|
if (mediaLinkingState && mediaLinkingState.editable) {
|
|
@@ -110,7 +110,9 @@ export var getLinkingDropdownOptions = function getLinkingDropdownOptions(editor
|
|
|
110
110
|
var selectedNodeTypeSingle = mediaNode === null || mediaNode === void 0 ? void 0 : mediaNode.attrs.__fileMimeType;
|
|
111
111
|
mediaType = getMediaType(selectedNodeTypeSingle);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
|
|
114
|
+
// Only show link dropdown option for images and external media (shown as images)
|
|
115
|
+
if (mediaType !== 'image' && (mediaNode === null || mediaNode === void 0 ? void 0 : mediaNode.attrs.type) !== 'external') {
|
|
114
116
|
return [];
|
|
115
117
|
}
|
|
116
118
|
if (mediaLinkingState && mediaLinkingState.editable) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.10",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
39
39
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
40
40
|
"@atlaskit/button": "^21.1.0",
|
|
41
|
-
"@atlaskit/editor-common": "^102.
|
|
41
|
+
"@atlaskit/editor-common": "^102.12.0",
|
|
42
42
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
44
44
|
"@atlaskit/editor-plugin-annotation": "^2.1.0",
|