@atlaskit/editor-plugin-grid 22.0.1 → 22.0.3

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,22 @@
1
1
  # @atlaskit/editor-plugin-grid
2
2
 
3
+ ## 22.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c004ba24db31f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c004ba24db31f) -
8
+ Clean up the shipped `platform_editor_external_embed_grid_fix` experiment. The grid overlay now
9
+ always sizes itself from the content line length plus the gutter width, so the conditional and the
10
+ experiment registration have been removed. The experiment is no longer available in the Statsig
11
+ configuration; consumers should remove its overrides and checks.
12
+ - Updated dependencies
13
+
14
+ ## 22.0.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 22.0.1
4
21
 
5
22
  ### Patch Changes
@@ -120,7 +120,7 @@ var GridLegacy = function GridLegacy(_ref3) {
120
120
  style: {
121
121
  height: "".concat(containerElement.scrollHeight, "px"),
122
122
  display: visible ? 'block' : 'none',
123
- width: overlayWidth === undefined ? undefined : "".concat(overlayWidth, "px")
123
+ width: "".concat(overlayWidth, "px")
124
124
  },
125
125
  "data-testid": "gridContainer"
126
126
  }, gridLines))
@@ -147,7 +147,7 @@ var GridNext = function GridNext(_ref4) {
147
147
  style: {
148
148
  height: "".concat(containerElement.scrollHeight, "px"),
149
149
  display: visible ? 'block' : 'none',
150
- width: overlayWidth === undefined ? undefined : "".concat(overlayWidth, "px")
150
+ width: "".concat(overlayWidth, "px")
151
151
  },
152
152
  "data-testid": "gridContainer"
153
153
  }, gridLines))
@@ -177,7 +177,7 @@ var ContentComponent = function ContentComponent(_ref5) {
177
177
  visible = _useSharedPluginState.visible,
178
178
  gridType = _useSharedPluginState.gridType,
179
179
  highlight = _useSharedPluginState.highlight;
180
- var overlayWidth = (0, _expValEquals.expValEquals)('platform_editor_external_embed_grid_fix', 'isEnabled', true) ? (lineLength || width || _editorSharedStyles.akEditorFullPageMaxWidth) + GRID_GUTTER_WIDTH : undefined;
180
+ var overlayWidth = (lineLength || width || _editorSharedStyles.akEditorFullPageMaxWidth) + GRID_GUTTER_WIDTH;
181
181
  if (!visible || !highlight) {
182
182
  return null;
183
183
  }
@@ -113,7 +113,7 @@ const GridLegacy = ({
113
113
  style: {
114
114
  height: `${containerElement.scrollHeight}px`,
115
115
  display: visible ? 'block' : 'none',
116
- width: overlayWidth === undefined ? undefined : `${overlayWidth}px`
116
+ width: `${overlayWidth}px`
117
117
  },
118
118
  "data-testid": "gridContainer"
119
119
  }, gridLines))
@@ -141,7 +141,7 @@ const GridNext = ({
141
141
  style: {
142
142
  height: `${containerElement.scrollHeight}px`,
143
143
  display: visible ? 'block' : 'none',
144
- width: overlayWidth === undefined ? undefined : `${overlayWidth}px`
144
+ width: `${overlayWidth}px`
145
145
  },
146
146
  "data-testid": "gridContainer"
147
147
  }, gridLines))
@@ -171,7 +171,7 @@ const ContentComponent = ({
171
171
  gridType,
172
172
  highlight
173
173
  } = useSharedPluginStateWithSelector(api, ['width', 'grid'], selector);
174
- const overlayWidth = expValEquals('platform_editor_external_embed_grid_fix', 'isEnabled', true) ? (lineLength || width || akEditorFullPageMaxWidth) + GRID_GUTTER_WIDTH : undefined;
174
+ const overlayWidth = (lineLength || width || akEditorFullPageMaxWidth) + GRID_GUTTER_WIDTH;
175
175
  if (!visible || !highlight) {
176
176
  return null;
177
177
  }
@@ -113,7 +113,7 @@ var GridLegacy = function GridLegacy(_ref3) {
113
113
  style: {
114
114
  height: "".concat(containerElement.scrollHeight, "px"),
115
115
  display: visible ? 'block' : 'none',
116
- width: overlayWidth === undefined ? undefined : "".concat(overlayWidth, "px")
116
+ width: "".concat(overlayWidth, "px")
117
117
  },
118
118
  "data-testid": "gridContainer"
119
119
  }, gridLines))
@@ -140,7 +140,7 @@ var GridNext = function GridNext(_ref4) {
140
140
  style: {
141
141
  height: "".concat(containerElement.scrollHeight, "px"),
142
142
  display: visible ? 'block' : 'none',
143
- width: overlayWidth === undefined ? undefined : "".concat(overlayWidth, "px")
143
+ width: "".concat(overlayWidth, "px")
144
144
  },
145
145
  "data-testid": "gridContainer"
146
146
  }, gridLines))
@@ -170,7 +170,7 @@ var ContentComponent = function ContentComponent(_ref5) {
170
170
  visible = _useSharedPluginState.visible,
171
171
  gridType = _useSharedPluginState.gridType,
172
172
  highlight = _useSharedPluginState.highlight;
173
- var overlayWidth = expValEquals('platform_editor_external_embed_grid_fix', 'isEnabled', true) ? (lineLength || width || akEditorFullPageMaxWidth) + GRID_GUTTER_WIDTH : undefined;
173
+ var overlayWidth = (lineLength || width || akEditorFullPageMaxWidth) + GRID_GUTTER_WIDTH;
174
174
  if (!visible || !highlight) {
175
175
  return null;
176
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "22.0.1",
3
+ "version": "22.0.3",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,7 @@
25
25
  "@atlaskit/editor-prosemirror": "^9.0.0",
26
26
  "@atlaskit/editor-shared-styles": "^4.3.0",
27
27
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
28
- "@atlaskit/tmp-editor-statsig": "^210.0.0",
28
+ "@atlaskit/tmp-editor-statsig": "^212.0.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "@emotion/react": "^11.7.1",
31
31
  "classnames": "^2.2.5"