@atlaskit/editor-plugin-layout 5.0.1 → 5.0.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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 5.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`599faf4ddf537`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/599faf4ddf537) -
|
|
8
|
+
[ED-29230] Fixes the VC offender div.layout-section-container from unnecessarily mutating the DOM
|
|
9
|
+
by returning null instead of a div
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 5.0.1
|
|
4
13
|
|
|
5
14
|
### 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.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.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.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^12.13.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.
|
|
53
|
+
"@atlaskit/editor-common": "^109.2.0",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
56
56
|
},
|