@atlaskit/renderer 108.8.6 → 108.8.8
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 +12 -0
- package/dist/cjs/react/nodes/blockCard.js +0 -2
- package/dist/cjs/react/nodes/table/colgroup.js +2 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/react/nodes/blockCard.js +0 -2
- package/dist/es2019/react/nodes/table/colgroup.js +2 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/react/nodes/blockCard.js +0 -2
- package/dist/esm/react/nodes/table/colgroup.js +2 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 108.8.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`02d1ab1d57d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/02d1ab1d57d) - Improve DnD Experience in Datasource Table view
|
|
8
|
+
|
|
9
|
+
## 108.8.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2babc4663c5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2babc4663c5) - Fix unnecessary table scaling in Renderer
|
|
14
|
+
|
|
3
15
|
## 108.8.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -23,8 +23,6 @@ var _utils2 = require("@atlaskit/editor-common/utils");
|
|
|
23
23
|
|
|
24
24
|
// Temporary, until we add aspect ratio to the datasource table
|
|
25
25
|
var datasourceContainerStyle = (0, _react2.css)({
|
|
26
|
-
height: '500px',
|
|
27
|
-
overflow: 'auto',
|
|
28
26
|
borderRadius: "".concat("var(--ds-border-radius-100, ".concat(_editorSharedStyles.akEditorRuleBorderRadius, ")")),
|
|
29
27
|
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")")),
|
|
30
28
|
marginLeft: '50%',
|
|
@@ -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.
|
|
58
|
+
var packageVersion = "108.8.8";
|
|
59
59
|
var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
package/dist/cjs/version.json
CHANGED
|
@@ -16,8 +16,6 @@ import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/
|
|
|
16
16
|
|
|
17
17
|
// Temporary, until we add aspect ratio to the datasource table
|
|
18
18
|
const datasourceContainerStyle = css({
|
|
19
|
-
height: '500px',
|
|
20
|
-
overflow: 'auto',
|
|
21
19
|
borderRadius: `${`var(--ds-border-radius-100, ${akEditorRuleBorderRadius})`}`,
|
|
22
20
|
border: `1px solid ${`var(--ds-border, ${N40})`}`,
|
|
23
21
|
marginLeft: '50%',
|
|
@@ -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.
|
|
38
|
+
const packageVersion = "108.8.8";
|
|
39
39
|
export class Renderer extends PureComponent {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
package/dist/es2019/version.json
CHANGED
|
@@ -16,8 +16,6 @@ import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/
|
|
|
16
16
|
|
|
17
17
|
// Temporary, until we add aspect ratio to the datasource table
|
|
18
18
|
var datasourceContainerStyle = css({
|
|
19
|
-
height: '500px',
|
|
20
|
-
overflow: 'auto',
|
|
21
19
|
borderRadius: "".concat("var(--ds-border-radius-100, ".concat(akEditorRuleBorderRadius, ")")),
|
|
22
20
|
border: "1px solid ".concat("var(--ds-border, ".concat(N40, ")")),
|
|
23
21
|
marginLeft: '50%',
|
|
@@ -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.
|
|
48
|
+
var packageVersion = "108.8.8";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "108.8.
|
|
3
|
+
"version": "108.8.8",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
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.
|
|
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",
|
|
@@ -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.
|
|
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
|
}
|