@atlaskit/renderer 108.8.5 → 108.8.7

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,17 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 108.8.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2babc4663c5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2babc4663c5) - Fix unnecessary table scaling in Renderer
8
+
9
+ ## 108.8.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 108.8.5
4
16
 
5
17
  ### Patch Changes
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _styles = require("@atlaskit/editor-common/styles");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
11
  var _nodeWidth = require("@atlaskit/editor-common/node-width");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  var _table = require("../table");
13
14
  // we allow scaling down column widths by no more than 30%
14
15
  // this intends to reduce unwanted scrolling in the Renderer in these scenarios:
@@ -88,7 +89,7 @@ var Colgroup = function Colgroup(props) {
88
89
  }
89
90
  // @see ED-6056
90
91
  var maxTableWidth = renderWidth < tableContainerWidth ? renderWidth : tableContainerWidth;
91
- if (layout === 'default') {
92
+ if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.disable-default-width-table-scaling-renderer') && layout === 'default') {
92
93
  renderWidth = Math.min(renderWidth, tableContainerWidth);
93
94
  }
94
95
  var tableWidth = isNumberColumnEnabled ? _editorSharedStyles.akEditorTableNumberColumnWidth : 0;
@@ -55,7 +55,7 @@ exports.NORMAL_SEVERITY_THRESHOLD = NORMAL_SEVERITY_THRESHOLD;
55
55
  var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  exports.DEGRADED_SEVERITY_THRESHOLD = DEGRADED_SEVERITY_THRESHOLD;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "108.8.5";
58
+ var packageVersion = "108.8.7";
59
59
  var Renderer = /*#__PURE__*/function (_PureComponent) {
60
60
  (0, _inherits2.default)(Renderer, _PureComponent);
61
61
  var _super = _createSuper(Renderer);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "108.8.5",
3
+ "version": "108.8.7",
4
4
  "sideEffects": false
5
5
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
3
3
  import { akEditorTableNumberColumnWidth, akEditorWideLayoutWidth, akEditorFullWidthLayoutWidth, akEditorTableLegacyCellMinWidth, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
4
4
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
5
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
6
  import { isTableResizingEnabled } from '../table';
6
7
 
7
8
  // we allow scaling down column widths by no more than 30%
@@ -80,7 +81,7 @@ export const Colgroup = props => {
80
81
  }
81
82
  // @see ED-6056
82
83
  const maxTableWidth = renderWidth < tableContainerWidth ? renderWidth : tableContainerWidth;
83
- if (layout === 'default') {
84
+ if (!getBooleanFF('platform.editor.disable-default-width-table-scaling-renderer') && layout === 'default') {
84
85
  renderWidth = Math.min(renderWidth, tableContainerWidth);
85
86
  }
86
87
  let tableWidth = isNumberColumnEnabled ? akEditorTableNumberColumnWidth : 0;
@@ -35,7 +35,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
35
35
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
36
36
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
37
37
  const packageName = "@atlaskit/renderer";
38
- const packageVersion = "108.8.5";
38
+ const packageVersion = "108.8.7";
39
39
  export class Renderer extends PureComponent {
40
40
  constructor(props) {
41
41
  super(props);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "108.8.5",
3
+ "version": "108.8.7",
4
4
  "sideEffects": false
5
5
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
3
3
  import { akEditorTableNumberColumnWidth, akEditorWideLayoutWidth, akEditorFullWidthLayoutWidth, akEditorTableLegacyCellMinWidth, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
4
4
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
5
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
6
  import { isTableResizingEnabled } from '../table';
6
7
 
7
8
  // we allow scaling down column widths by no more than 30%
@@ -81,7 +82,7 @@ export var Colgroup = function Colgroup(props) {
81
82
  }
82
83
  // @see ED-6056
83
84
  var maxTableWidth = renderWidth < tableContainerWidth ? renderWidth : tableContainerWidth;
84
- if (layout === 'default') {
85
+ if (!getBooleanFF('platform.editor.disable-default-width-table-scaling-renderer') && layout === 'default') {
85
86
  renderWidth = Math.min(renderWidth, tableContainerWidth);
86
87
  }
87
88
  var tableWidth = isNumberColumnEnabled ? akEditorTableNumberColumnWidth : 0;
@@ -45,7 +45,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
45
45
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
46
46
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
47
47
  var packageName = "@atlaskit/renderer";
48
- var packageVersion = "108.8.5";
48
+ var packageVersion = "108.8.7";
49
49
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
50
50
  _inherits(Renderer, _PureComponent);
51
51
  var _super = _createSuper(Renderer);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "108.8.5",
3
+ "version": "108.8.7",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "108.8.5",
3
+ "version": "108.8.7",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,14 +31,14 @@
31
31
  "@atlaskit/analytics-next": "^9.1.0",
32
32
  "@atlaskit/button": "^16.8.0",
33
33
  "@atlaskit/code": "^14.6.0",
34
- "@atlaskit/editor-common": "^74.29.0",
34
+ "@atlaskit/editor-common": "^74.30.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.10.0",
36
36
  "@atlaskit/editor-palette": "1.5.1",
37
37
  "@atlaskit/editor-prosemirror": "1.0.2",
38
38
  "@atlaskit/editor-shared-styles": "^2.5.0",
39
39
  "@atlaskit/emoji": "^67.4.0",
40
40
  "@atlaskit/icon": "^21.12.0",
41
- "@atlaskit/link-datasource": "^0.30.0",
41
+ "@atlaskit/link-datasource": "^0.31.0",
42
42
  "@atlaskit/media-card": "^76.1.0",
43
43
  "@atlaskit/media-client": "^23.1.0",
44
44
  "@atlaskit/media-common": "^7.1.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/media-ui": "^23.2.0",
47
47
  "@atlaskit/media-viewer": "^48.0.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.0",
49
- "@atlaskit/smart-card": "^26.13.0",
49
+ "@atlaskit/smart-card": "^26.14.0",
50
50
  "@atlaskit/status": "^1.3.0",
51
51
  "@atlaskit/task-decision": "^17.7.0",
52
52
  "@atlaskit/theme": "^12.5.0",
@@ -118,6 +118,9 @@
118
118
  },
119
119
  "platform.editor.custom-table-width": {
120
120
  "type": "boolean"
121
+ },
122
+ "platform.editor.disable-default-width-table-scaling-renderer": {
123
+ "type": "boolean"
121
124
  }
122
125
  }
123
126
  }