@atlaskit/editor-plugin-media 7.1.0 → 7.2.0

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,16 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 7.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
8
+ EDITOR-1562 bump adf-schema for afm
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 7.1.0
4
15
 
5
16
  ### Minor Changes
@@ -301,6 +301,9 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
301
301
  contentComponent: function contentComponent(_ref10) {
302
302
  var editorView = _ref10.editorView,
303
303
  appearance = _ref10.appearance;
304
+ if (!editorView) {
305
+ return null;
306
+ }
304
307
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(MediaViewerFunctionalComponent, {
305
308
  api: api,
306
309
  editorView: editorView
@@ -299,6 +299,9 @@ export const mediaPlugin = ({
299
299
  editorView,
300
300
  appearance
301
301
  }) {
302
+ if (!editorView) {
303
+ return null;
304
+ }
302
305
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MediaViewerFunctionalComponent, {
303
306
  api: api,
304
307
  editorView: editorView
@@ -292,6 +292,9 @@ export var mediaPlugin = function mediaPlugin(_ref3) {
292
292
  contentComponent: function contentComponent(_ref10) {
293
293
  var editorView = _ref10.editorView,
294
294
  appearance = _ref10.appearance;
295
+ if (!editorView) {
296
+ return null;
297
+ }
295
298
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MediaViewerFunctionalComponent, {
296
299
  api: api,
297
300
  editorView: editorView
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.1.1",
32
+ "@atlaskit/adf-schema": "^51.1.2",
33
33
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
34
34
  "@atlaskit/analytics-next": "^11.1.0",
35
35
  "@atlaskit/button": "^23.4.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
- "@atlaskit/editor-plugin-analytics": "^5.1.0",
38
- "@atlaskit/editor-plugin-annotation": "^5.1.0",
37
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
38
+ "@atlaskit/editor-plugin-annotation": "^5.3.0",
39
39
  "@atlaskit/editor-plugin-connectivity": "^5.0.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^5.0.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/editor-prosemirror": "7.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^3.6.0",
53
53
  "@atlaskit/editor-tables": "^2.9.0",
54
- "@atlaskit/form": "^12.5.0",
54
+ "@atlaskit/form": "^12.6.0",
55
55
  "@atlaskit/icon": "^28.1.0",
56
56
  "@atlaskit/icon-lab": "^5.7.0",
57
57
  "@atlaskit/media-card": "^79.5.0",
@@ -60,13 +60,13 @@
60
60
  "@atlaskit/media-common": "^12.3.0",
61
61
  "@atlaskit/media-filmstrip": "^51.0.0",
62
62
  "@atlaskit/media-picker": "^70.0.0",
63
- "@atlaskit/media-ui": "^28.6.0",
63
+ "@atlaskit/media-ui": "^28.7.0",
64
64
  "@atlaskit/media-viewer": "^52.4.0",
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/primitives": "^14.14.0",
67
67
  "@atlaskit/textfield": "^8.0.0",
68
68
  "@atlaskit/theme": "^21.0.0",
69
- "@atlaskit/tmp-editor-statsig": "^12.14.0",
69
+ "@atlaskit/tmp-editor-statsig": "^12.18.0",
70
70
  "@atlaskit/tokens": "^6.3.0",
71
71
  "@atlaskit/tooltip": "^20.4.0",
72
72
  "@babel/runtime": "^7.0.0",
@@ -78,7 +78,7 @@
78
78
  "uuid": "^3.1.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^109.3.0",
81
+ "@atlaskit/editor-common": "^109.5.0",
82
82
  "@atlaskit/media-core": "^37.0.0",
83
83
  "react": "^18.2.0",
84
84
  "react-dom": "^18.2.0",