@atlaskit/editor-plugin-layout 5.0.1 → 5.1.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,25 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 5.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`64ec65231b4cf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64ec65231b4cf) -
8
+ EDITOR-1568 bump adf-schema for afm
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 5.0.2
15
+
16
+ ### Patch Changes
17
+
18
+ - [`599faf4ddf537`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/599faf4ddf537) -
19
+ [ED-29230] Fixes the VC offender div.layout-section-container from unnecessarily mutating the DOM
20
+ by returning null instead of a div
21
+ - Updated dependencies
22
+
3
23
  ## 5.0.1
4
24
 
5
25
  ### Patch Changes
@@ -204,6 +204,9 @@ var LayoutSectionView = exports.LayoutSectionView = /*#__PURE__*/function (_Reac
204
204
  if (this.layoutDOM) {
205
205
  this.layoutDOM.setAttribute('data-empty-layout', Boolean(this.isEmpty).toString());
206
206
  }
207
+ if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true) && (0, _expValEquals.expValEquals)('platform_editor_layout_node_view_early_exit', 'isEnabled', true)) {
208
+ return null;
209
+ }
207
210
  return /*#__PURE__*/_react.default.createElement(LayoutBreakoutResizer, {
208
211
  pluginInjectionApi: props.pluginInjectionApi,
209
212
  forwardRef: forwardRef,
@@ -177,6 +177,9 @@ export class LayoutSectionView extends ReactNodeView {
177
177
  if (this.layoutDOM) {
178
178
  this.layoutDOM.setAttribute('data-empty-layout', Boolean(this.isEmpty).toString());
179
179
  }
180
+ if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true) && expValEquals('platform_editor_layout_node_view_early_exit', 'isEnabled', true)) {
181
+ return null;
182
+ }
180
183
  return /*#__PURE__*/React.createElement(LayoutBreakoutResizer, {
181
184
  pluginInjectionApi: props.pluginInjectionApi,
182
185
  forwardRef: forwardRef,
@@ -195,6 +195,9 @@ export var LayoutSectionView = /*#__PURE__*/function (_ReactNodeView) {
195
195
  if (this.layoutDOM) {
196
196
  this.layoutDOM.setAttribute('data-empty-layout', Boolean(this.isEmpty).toString());
197
197
  }
198
+ if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true) && expValEquals('platform_editor_layout_node_view_early_exit', 'isEnabled', true)) {
199
+ return null;
200
+ }
198
201
  return /*#__PURE__*/React.createElement(LayoutBreakoutResizer, {
199
202
  pluginInjectionApi: props.pluginInjectionApi,
200
203
  forwardRef: forwardRef,
@@ -68,7 +68,7 @@ export declare class LayoutSectionView extends ReactNodeView<LayoutSectionViewPr
68
68
  * @example
69
69
  * @returns
70
70
  */
71
- render(props: LayoutSectionViewProps, forwardRef: ForwardRef): React.JSX.Element;
71
+ render(props: LayoutSectionViewProps, forwardRef: ForwardRef): React.JSX.Element | null;
72
72
  /**
73
73
  * ignoreMutation
74
74
  * @param mutation
@@ -68,7 +68,7 @@ export declare class LayoutSectionView extends ReactNodeView<LayoutSectionViewPr
68
68
  * @example
69
69
  * @returns
70
70
  */
71
- render(props: LayoutSectionViewProps, forwardRef: ForwardRef): React.JSX.Element;
71
+ render(props: LayoutSectionViewProps, forwardRef: ForwardRef): React.JSX.Element | null;
72
72
  /**
73
73
  * ignoreMutation
74
74
  * @param mutation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.0.0",
33
- "@atlaskit/editor-plugin-analytics": "^5.0.0",
32
+ "@atlaskit/adf-schema": "^51.1.1",
33
+ "@atlaskit/editor-plugin-analytics": "^5.1.0",
34
34
  "@atlaskit/editor-plugin-block-menu": "^3.0.0",
35
35
  "@atlaskit/editor-plugin-decorations": "^5.0.0",
36
36
  "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/icon": "^28.1.0",
45
45
  "@atlaskit/icon-lab": "^5.7.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^12.11.0",
47
+ "@atlaskit/tmp-editor-statsig": "^12.14.0",
48
48
  "@atlaskit/tokens": "^6.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^109.1.0",
53
+ "@atlaskit/editor-common": "^109.3.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1"
56
56
  },