@atlaskit/editor-plugin-grid 7.0.19 → 8.0.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,19 @@
1
1
  # @atlaskit/editor-plugin-grid
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.0.20
10
+
11
+ ### Patch Changes
12
+
13
+ - [`f91f6be9566a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f91f6be9566a5) -
14
+ Don't show the grid container if not visible to avoid reflow experiment.
15
+ - Updated dependencies
16
+
3
17
  ## 7.0.19
4
18
 
5
19
  ### Patch Changes
@@ -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
@@ -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.19",
3
+ "version": "8.0.0",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,16 +21,16 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/editor-plugin-width": "^8.1.0",
24
+ "@atlaskit/editor-plugin-width": "^9.0.0",
25
25
  "@atlaskit/editor-prosemirror": "^7.3.0",
26
26
  "@atlaskit/editor-shared-styles": "^3.10.0",
27
- "@atlaskit/tmp-editor-statsig": "^35.0.0",
27
+ "@atlaskit/tmp-editor-statsig": "^35.10.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.30.0",
33
+ "@atlaskit/editor-common": "^112.0.0",
34
34
  "react": "^18.2.0",
35
35
  "react-dom": "^18.2.0"
36
36
  },