@atlaskit/editor-plugin-media 12.9.0 → 12.9.1

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
+ ## 12.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cd85cdec5ae7e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd85cdec5ae7e) -
8
+ EDITOR-7170 add transform for panel -> panel_c1
9
+ - Updated dependencies
10
+
3
11
  ## 12.9.0
4
12
 
5
13
  ### Minor Changes
@@ -21,6 +21,7 @@ var _ui = require("@atlaskit/editor-common/ui");
21
21
  var _utils = require("@atlaskit/editor-common/utils");
22
22
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
23
23
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
24
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
24
25
  var _checkMediaType = require("../../pm-plugins/utils/check-media-type");
25
26
  var _styled = require("./styled");
26
27
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
@@ -135,8 +136,10 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
135
136
  table = _this$props$view$stat.table,
136
137
  expand = _this$props$view$stat.expand,
137
138
  nestedExpand = _this$props$view$stat.nestedExpand,
138
- panel = _this$props$view$stat.panel;
139
- if (_this.$pos && !!(0, _utils2.findParentNodeOfTypeClosestToPos)(_this.$pos, [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean))) {
139
+ panel = _this$props$view$stat.panel,
140
+ panel_c1 = _this$props$view$stat.panel_c1;
141
+ var parentsToHideGridLines = (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) ? [layoutColumn, table, expand, nestedExpand, panel, panel_c1].filter(Boolean) : [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean);
142
+ if (_this.$pos && !!(0, _utils2.findParentNodeOfTypeClosestToPos)(_this.$pos, parentsToHideGridLines)) {
140
143
  return [];
141
144
  }
142
145
  if (snapWidth > _editorSharedStyles.akEditorWideLayoutWidth) {
@@ -13,6 +13,7 @@ import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, handleSides, imageA
13
13
  import { calculateSnapPoints } from '@atlaskit/editor-common/utils';
14
14
  import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
15
15
  import { akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
16
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
16
17
  import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
17
18
  import { wrapperStyle } from './styled';
18
19
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -127,9 +128,11 @@ export default class ResizableMediaSingle extends React.Component {
127
128
  table,
128
129
  expand,
129
130
  nestedExpand,
130
- panel
131
+ panel,
132
+ panel_c1
131
133
  } = this.props.view.state.schema.nodes;
132
- if (this.$pos && !!findParentNodeOfTypeClosestToPos(this.$pos, [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean))) {
134
+ const parentsToHideGridLines = expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) ? [layoutColumn, table, expand, nestedExpand, panel, panel_c1].filter(Boolean) : [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean);
135
+ if (this.$pos && !!findParentNodeOfTypeClosestToPos(this.$pos, parentsToHideGridLines)) {
133
136
  return [];
134
137
  }
135
138
  if (snapWidth > akEditorWideLayoutWidth) {
@@ -22,6 +22,7 @@ import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, handleSides, imageA
22
22
  import { calculateSnapPoints } from '@atlaskit/editor-common/utils';
23
23
  import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
24
24
  import { akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
25
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
25
26
  import { checkMediaType } from '../../pm-plugins/utils/check-media-type';
26
27
  import { wrapperStyle } from './styled';
27
28
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -131,8 +132,10 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
131
132
  table = _this$props$view$stat.table,
132
133
  expand = _this$props$view$stat.expand,
133
134
  nestedExpand = _this$props$view$stat.nestedExpand,
134
- panel = _this$props$view$stat.panel;
135
- if (_this.$pos && !!findParentNodeOfTypeClosestToPos(_this.$pos, [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean))) {
135
+ panel = _this$props$view$stat.panel,
136
+ panel_c1 = _this$props$view$stat.panel_c1;
137
+ var parentsToHideGridLines = expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) ? [layoutColumn, table, expand, nestedExpand, panel, panel_c1].filter(Boolean) : [layoutColumn, table, expand, nestedExpand, panel].filter(Boolean);
138
+ if (_this.$pos && !!findParentNodeOfTypeClosestToPos(_this.$pos, parentsToHideGridLines)) {
136
139
  return [];
137
140
  }
138
141
  if (snapWidth > akEditorWideLayoutWidth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "12.9.0",
3
+ "version": "12.9.1",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -65,7 +65,7 @@
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/primitives": "^19.0.0",
67
67
  "@atlaskit/textfield": "^8.3.0",
68
- "@atlaskit/tmp-editor-statsig": "^84.2.0",
68
+ "@atlaskit/tmp-editor-statsig": "^84.3.0",
69
69
  "@atlaskit/tokens": "^13.0.0",
70
70
  "@atlaskit/tooltip": "^22.3.0",
71
71
  "@babel/runtime": "^7.0.0",
@@ -77,7 +77,7 @@
77
77
  "uuid": "^3.1.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@atlaskit/editor-common": "^114.48.0",
80
+ "@atlaskit/editor-common": "^114.49.0",
81
81
  "@atlaskit/media-core": "^37.1.0",
82
82
  "react": "^18.2.0",
83
83
  "react-dom": "^18.2.0",