@atlaskit/renderer 137.1.9 → 137.1.10

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,13 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 137.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2e56a5fbd0f35`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e56a5fbd0f35) -
8
+ Clean up feature gate `platform-ssr-table-resize`
9
+ - Updated dependencies
10
+
3
11
  ## 137.1.9
4
12
 
5
13
  ### Patch Changes
@@ -289,11 +289,10 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
289
289
  }
290
290
  // scaling down
291
291
  else if (renderWidth < tableWidth && !isTableWidthFixed) {
292
- var shouldTable100ScaleDown = rendererAppearance === 'comment' && allowTableResizing && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width);
293
292
  scaleDownPercent = calcScalePercent({
294
293
  renderWidth: renderWidth,
295
294
  tableWidth: tableWidth,
296
- maxScale: (0, _fg.fg)('platform-ssr-table-resize') ? maxScalingPercent : shouldTable100ScaleDown ? 1 : maxScalingPercent,
295
+ maxScale: maxScalingPercent,
297
296
  isNumberColumnEnabled: isNumberColumnEnabled
298
297
  });
299
298
  }
@@ -118,8 +118,6 @@ var StickyTable = exports.StickyTable = function StickyTable(_ref) {
118
118
  tableNode = _ref.tableNode,
119
119
  rendererAppearance = _ref.rendererAppearance,
120
120
  allowTableResizing = _ref.allowTableResizing,
121
- _ref$fixTableSSRResiz = _ref.fixTableSSRResizing,
122
- fixTableSSRResizing = _ref$fixTableSSRResiz === void 0 ? false : _ref$fixTableSSRResiz,
123
121
  allowFixedColumnWidthOption = _ref.allowFixedColumnWidthOption;
124
122
  var styles;
125
123
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
@@ -155,7 +153,7 @@ var StickyTable = exports.StickyTable = function StickyTable(_ref) {
155
153
  style: {
156
154
  width: tableWidth,
157
155
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
158
- marginBottom: fixTableSSRResizing ? 0 : ''
156
+ marginBottom: 0
159
157
  }
160
158
  }, (0, _react2.jsx)("div", {
161
159
  ref: innerRef
@@ -173,7 +171,7 @@ var StickyTable = exports.StickyTable = function StickyTable(_ref) {
173
171
  renderWidth: renderWidth,
174
172
  tableNode: tableNode,
175
173
  rendererAppearance: rendererAppearance,
176
- fixTableSSRResizing: fixTableSSRResizing,
174
+ fixTableSSRResizing: true,
177
175
  allowFixedColumnWidthOption: allowFixedColumnWidthOption
178
176
  },
179
177
  /**
@@ -39,21 +39,10 @@ var Table = exports.Table = /*#__PURE__*/_react.default.memo(function (_ref) {
39
39
  if (rendererAppearance === 'comment' && allowTableResizing && tableNode && !((_tableNode$attrs = tableNode.attrs) !== null && _tableNode$attrs !== void 0 && _tableNode$attrs.width)) {
40
40
  tableWidth = 'inherit';
41
41
  }
42
- if (rendererAppearance === 'comment' && !allowTableResizing) {
43
- // in the case we have css container stylings,
44
- // we don't need to calculate width here as this
45
- // is done via css
46
- if (!(0, _fg.fg)('platform-ssr-table-resize')) {
47
- tableWidth = renderWidth;
48
- }
49
- }
50
-
51
42
  // for columns that are evenly distributed, do not return `colgroup` since existing table containerQuery
52
43
  // scales up the columns width. This ensures columns always have 42px.
53
44
  if (rendererAppearance === 'comment') {
54
- if ((0, _fg.fg)('platform-ssr-table-resize')) {
55
- tableColumnWidths = columnWidths && (0, _colgroup.colWidthSum)(columnWidths) ? columnWidths : undefined;
56
- }
45
+ tableColumnWidths = columnWidths && (0, _colgroup.colWidthSum)(columnWidths) ? columnWidths : undefined;
57
46
  }
58
47
  var tableLayout = tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.layout;
59
48
  var tableDisplayMode = tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.displayMode;