@atlaskit/editor-plugin-media 1.14.1 → 1.14.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,11 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 1.14.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#88742](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88742) [`6771cedeadd3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6771cedeadd3) - Add UI for comment badge in Renderer, clean up props
8
+
3
9
  ## 1.14.1
4
10
 
5
11
  ### Patch Changes
@@ -38,11 +38,12 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref) {
38
38
  }
39
39
  var mediaElement = view.domAtPos(pos + 1).node;
40
40
  return /*#__PURE__*/_react.default.createElement(_mediaSingle.CommentBadge, {
41
- view: view,
42
- mediaNode: mediaNode,
41
+ width: mediaNode.attrs.width,
42
+ height: mediaNode.attrs.height,
43
43
  onClick: onClick,
44
44
  mediaElement: mediaElement,
45
- intl: intl
45
+ intl: intl,
46
+ isEditor: true
46
47
  });
47
48
  };
48
49
  var CommentBadge = exports.CommentBadge = (0, _reactIntlNext.injectIntl)(CommentBadgeWrapper);
@@ -40,11 +40,12 @@ const CommentBadgeWrapper = ({
40
40
  }
41
41
  const mediaElement = view.domAtPos(pos + 1).node;
42
42
  return /*#__PURE__*/React.createElement(CommentBadgeComponent, {
43
- view: view,
44
- mediaNode: mediaNode,
43
+ width: mediaNode.attrs.width,
44
+ height: mediaNode.attrs.height,
45
45
  onClick: onClick,
46
46
  mediaElement: mediaElement,
47
- intl: intl
47
+ intl: intl,
48
+ isEditor: true
48
49
  });
49
50
  };
50
51
  export const CommentBadge = injectIntl(CommentBadgeWrapper);
@@ -29,11 +29,12 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref) {
29
29
  }
30
30
  var mediaElement = view.domAtPos(pos + 1).node;
31
31
  return /*#__PURE__*/React.createElement(CommentBadgeComponent, {
32
- view: view,
33
- mediaNode: mediaNode,
32
+ width: mediaNode.attrs.width,
33
+ height: mediaNode.attrs.height,
34
34
  onClick: onClick,
35
35
  mediaElement: mediaElement,
36
- intl: intl
36
+ intl: intl,
37
+ isEditor: true
37
38
  });
38
39
  };
39
40
  export var CommentBadge = injectIntl(CommentBadgeWrapper);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "1.14.1",
3
+ "version": "1.14.2",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",