@atlaskit/editor-plugin-media 0.11.10 → 0.11.11

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
+ ## 0.11.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#68724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68724) [`766fca9896cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/766fca9896cb) - [ux] ED-21615 Removing grid lines when resizing image inside panel.
8
+
3
9
  ## 0.11.10
4
10
 
5
11
  ### Patch Changes
@@ -125,8 +125,9 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
125
125
  layoutColumn = _this$props$view$stat.layoutColumn,
126
126
  table = _this$props$view$stat.table,
127
127
  expand = _this$props$view$stat.expand,
128
- nestedExpand = _this$props$view$stat.nestedExpand;
129
- if (_this.$pos && !!(0, _utils2.findParentNodeOfTypeClosestToPos)(_this.$pos, [layoutColumn, table, expand, nestedExpand].filter(Boolean))) {
128
+ nestedExpand = _this$props$view$stat.nestedExpand,
129
+ panel = _this$props$view$stat.panel;
130
+ if (_this.$pos && !!(0, _utils2.findParentNodeOfTypeClosestToPos)(_this.$pos, [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean))) {
130
131
  return [];
131
132
  }
132
133
  if (snapWidth > _editorSharedStyles.akEditorWideLayoutWidth) {
@@ -112,9 +112,10 @@ export default class ResizableMediaSingle extends React.Component {
112
112
  layoutColumn,
113
113
  table,
114
114
  expand,
115
- nestedExpand
115
+ nestedExpand,
116
+ panel
116
117
  } = this.props.view.state.schema.nodes;
117
- if (this.$pos && !!findParentNodeOfTypeClosestToPos(this.$pos, [layoutColumn, table, expand, nestedExpand].filter(Boolean))) {
118
+ if (this.$pos && !!findParentNodeOfTypeClosestToPos(this.$pos, [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean))) {
118
119
  return [];
119
120
  }
120
121
  if (snapWidth > akEditorWideLayoutWidth) {
@@ -119,8 +119,9 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
119
119
  layoutColumn = _this$props$view$stat.layoutColumn,
120
120
  table = _this$props$view$stat.table,
121
121
  expand = _this$props$view$stat.expand,
122
- nestedExpand = _this$props$view$stat.nestedExpand;
123
- if (_this.$pos && !!findParentNodeOfTypeClosestToPos(_this.$pos, [layoutColumn, table, expand, nestedExpand].filter(Boolean))) {
122
+ nestedExpand = _this$props$view$stat.nestedExpand,
123
+ panel = _this$props$view$stat.panel;
124
+ if (_this.$pos && !!findParentNodeOfTypeClosestToPos(_this.$pos, [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean))) {
124
125
  return [];
125
126
  }
126
127
  if (snapWidth > akEditorWideLayoutWidth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "0.11.10",
3
+ "version": "0.11.11",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",