@atlaskit/editor-plugin-media-insert 2.3.1 → 2.3.2

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-media-insert
2
2
 
3
+ ## 2.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#137217](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137217)
8
+ [`90e304a10f0b2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/90e304a10f0b2) -
9
+ [ED-24843] Fix external flag on media-insert external node creation
10
+ - Updated dependencies
11
+
3
12
  ## 2.3.1
4
13
 
5
14
  ### Patch Changes
@@ -81,7 +81,8 @@ var mediaInsertPlugin = exports.mediaInsertPlugin = function mediaInsertPlugin(_
81
81
  var node = editorView.state.schema.nodes.media.create({
82
82
  type: 'external',
83
83
  url: url,
84
- alt: alt
84
+ alt: alt,
85
+ __external: true
85
86
  });
86
87
  return (_api$media$actions$in2 = api === null || api === void 0 ? void 0 : api.media.actions.insertMediaAsMediaSingle(editorView, node, inputMethod)) !== null && _api$media$actions$in2 !== void 0 ? _api$media$actions$in2 : false;
87
88
  };
@@ -79,7 +79,8 @@ export const mediaInsertPlugin = ({
79
79
  const node = editorView.state.schema.nodes.media.create({
80
80
  type: 'external',
81
81
  url,
82
- alt
82
+ alt,
83
+ __external: true
83
84
  });
84
85
  return (_api$media$actions$in2 = api === null || api === void 0 ? void 0 : api.media.actions.insertMediaAsMediaSingle(editorView, node, inputMethod)) !== null && _api$media$actions$in2 !== void 0 ? _api$media$actions$in2 : false;
85
86
  };
@@ -74,7 +74,8 @@ export var mediaInsertPlugin = function mediaInsertPlugin(_ref) {
74
74
  var node = editorView.state.schema.nodes.media.create({
75
75
  type: 'external',
76
76
  url: url,
77
- alt: alt
77
+ alt: alt,
78
+ __external: true
78
79
  });
79
80
  return (_api$media$actions$in2 = api === null || api === void 0 ? void 0 : api.media.actions.insertMediaAsMediaSingle(editorView, node, inputMethod)) !== null && _api$media$actions$in2 !== void 0 ? _api$media$actions$in2 : false;
80
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media-insert",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Media Insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@atlaskit/button": "^20.1.0",
27
- "@atlaskit/editor-common": "^88.7.0",
27
+ "@atlaskit/editor-common": "^88.11.0",
28
28
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
29
29
  "@atlaskit/editor-plugin-media": "^1.29.0",
30
30
  "@atlaskit/editor-prosemirror": "5.0.1",
31
31
  "@atlaskit/editor-shared-styles": "^2.13.0",
32
- "@atlaskit/icon": "^22.15.0",
32
+ "@atlaskit/icon": "^22.16.0",
33
33
  "@atlaskit/media-card": "^78.2.0",
34
34
  "@atlaskit/media-client": "^27.6.0",
35
35
  "@atlaskit/media-client-react": "^2.2.0",