@atlaskit/editor-plugin-grid 7.0.19 → 7.0.20
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 +8 -0
- package/dist/cjs/gridPlugin.js +9 -0
- package/dist/es2019/gridPlugin.js +9 -0
- package/dist/esm/gridPlugin.js +9 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-grid
|
|
2
2
|
|
|
3
|
+
## 7.0.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f91f6be9566a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f91f6be9566a5) -
|
|
8
|
+
Don't show the grid container if not visible to avoid reflow experiment.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.0.19
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/gridPlugin.js
CHANGED
|
@@ -143,6 +143,15 @@ var ContentComponent = function ContentComponent(_ref4) {
|
|
|
143
143
|
if (visible === undefined || !highlight) {
|
|
144
144
|
return null;
|
|
145
145
|
}
|
|
146
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
|
|
147
|
+
if (!visible || !highlight) {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
if (visible === undefined || !highlight) {
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
146
155
|
return /*#__PURE__*/_react.default.createElement(ThemedGrid, {
|
|
147
156
|
shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
|
|
148
157
|
editorWidth: width !== null && width !== void 0 ? width : _editorSharedStyles.akEditorFullPageMaxWidth
|
|
@@ -138,6 +138,15 @@ const ContentComponent = ({
|
|
|
138
138
|
if (visible === undefined || !highlight) {
|
|
139
139
|
return null;
|
|
140
140
|
}
|
|
141
|
+
if (expValEquals('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
|
|
142
|
+
if (!visible || !highlight) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
} else {
|
|
146
|
+
if (visible === undefined || !highlight) {
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
141
150
|
return /*#__PURE__*/React.createElement(ThemedGrid, {
|
|
142
151
|
shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
|
|
143
152
|
editorWidth: width !== null && width !== void 0 ? width : akEditorFullPageMaxWidth
|
package/dist/esm/gridPlugin.js
CHANGED
|
@@ -136,6 +136,15 @@ var ContentComponent = function ContentComponent(_ref4) {
|
|
|
136
136
|
if (visible === undefined || !highlight) {
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
+
if (expValEquals('platform_editor_remove_grid_init_reflow', 'isEnabled', true)) {
|
|
140
|
+
if (!visible || !highlight) {
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
} else {
|
|
144
|
+
if (visible === undefined || !highlight) {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
139
148
|
return /*#__PURE__*/React.createElement(ThemedGrid, {
|
|
140
149
|
shouldCalcBreakoutGridLines: options && options.shouldCalcBreakoutGridLines,
|
|
141
150
|
editorWidth: width !== null && width !== void 0 ? width : akEditorFullPageMaxWidth
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-grid",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.20",
|
|
4
4
|
"description": "Grid plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"@atlaskit/editor-plugin-width": "^8.1.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
26
26
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
27
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^35.7.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"@emotion/react": "^11.7.1",
|
|
30
30
|
"classnames": "^2.2.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^111.
|
|
33
|
+
"@atlaskit/editor-common": "^111.34.0",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0"
|
|
36
36
|
},
|