@atlaskit/renderer 110.1.1 → 110.2.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 +8 -0
- package/dist/cjs/react/nodes/table/colgroup.js +1 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/table/colgroup.js +1 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/table/colgroup.js +1 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 110.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#142155](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142155)
|
|
8
|
+
[`9749eb9ba2987`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9749eb9ba2987) -
|
|
9
|
+
Remove platform.editor.table.use-increased-scaling-percent feature flag
|
|
10
|
+
|
|
3
11
|
## 110.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -10,7 +10,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _nodeWidth = require("@atlaskit/editor-common/node-width");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _useFeatureFlags = require("../../../use-feature-flags");
|
|
15
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -139,7 +138,7 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
|
|
|
139
138
|
var scaleDownPercent = 0;
|
|
140
139
|
var isTableScalingWithFixedColumnWidthsOptionEnabled = isTableScalingEnabled && isTableFixedColumnWidthsOptionEnabled;
|
|
141
140
|
var isTableWidthFixed = isTableScalingWithFixedColumnWidthsOptionEnabled && ((_props$tableNode = props.tableNode) === null || _props$tableNode === void 0 ? void 0 : _props$tableNode.attrs.displayMode) === 'fixed';
|
|
142
|
-
var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled
|
|
141
|
+
var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
|
|
143
142
|
|
|
144
143
|
// fixes migration tables with zero-width columns
|
|
145
144
|
if (zeroWidthColumnsCount > 0) {
|
|
@@ -63,7 +63,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
63
63
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
64
64
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "110.
|
|
66
|
+
var packageVersion = "110.2.0";
|
|
67
67
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
68
68
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
69
69
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useFeatureFlags } from '../../../use-feature-flags';
|
|
7
6
|
// we allow scaling down column widths by no more than 30%
|
|
8
7
|
// this intends to reduce unwanted scrolling in the Renderer in these scenarios:
|
|
@@ -126,7 +125,7 @@ const renderScaleDownColgroup = props => {
|
|
|
126
125
|
let scaleDownPercent = 0;
|
|
127
126
|
const isTableScalingWithFixedColumnWidthsOptionEnabled = isTableScalingEnabled && isTableFixedColumnWidthsOptionEnabled;
|
|
128
127
|
const isTableWidthFixed = isTableScalingWithFixedColumnWidthsOptionEnabled && ((_props$tableNode = props.tableNode) === null || _props$tableNode === void 0 ? void 0 : _props$tableNode.attrs.displayMode) === 'fixed';
|
|
129
|
-
const maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled
|
|
128
|
+
const maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
|
|
130
129
|
|
|
131
130
|
// fixes migration tables with zero-width columns
|
|
132
131
|
if (zeroWidthColumnsCount > 0) {
|
|
@@ -45,7 +45,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
45
45
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
const packageName = "@atlaskit/renderer";
|
|
48
|
-
const packageVersion = "110.
|
|
48
|
+
const packageVersion = "110.2.0";
|
|
49
49
|
export const defaultNodeComponents = nodeToReact;
|
|
50
50
|
export class Renderer extends PureComponent {
|
|
51
51
|
constructor(props) {
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { useFeatureFlags } from '../../../use-feature-flags';
|
|
10
9
|
// we allow scaling down column widths by no more than 30%
|
|
11
10
|
// this intends to reduce unwanted scrolling in the Renderer in these scenarios:
|
|
@@ -132,7 +131,7 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
|
|
|
132
131
|
var scaleDownPercent = 0;
|
|
133
132
|
var isTableScalingWithFixedColumnWidthsOptionEnabled = isTableScalingEnabled && isTableFixedColumnWidthsOptionEnabled;
|
|
134
133
|
var isTableWidthFixed = isTableScalingWithFixedColumnWidthsOptionEnabled && ((_props$tableNode = props.tableNode) === null || _props$tableNode === void 0 ? void 0 : _props$tableNode.attrs.displayMode) === 'fixed';
|
|
135
|
-
var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled
|
|
134
|
+
var maxScalingPercent = isTableScalingWithFixedColumnWidthsOptionEnabled ? MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION : MAX_SCALING_PERCENT;
|
|
136
135
|
|
|
137
136
|
// fixes migration tables with zero-width columns
|
|
138
137
|
if (zeroWidthColumnsCount > 0) {
|
|
@@ -55,7 +55,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
55
55
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
56
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "110.
|
|
58
|
+
var packageVersion = "110.2.0";
|
|
59
59
|
export var defaultNodeComponents = nodeToReact;
|
|
60
60
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
61
61
|
_inherits(Renderer, _PureComponent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "110.
|
|
3
|
+
"version": "110.2.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
30
30
|
"@atlaskit/button": "^20.1.0",
|
|
31
31
|
"@atlaskit/code": "^15.6.0",
|
|
32
|
-
"@atlaskit/editor-common": "^89.
|
|
32
|
+
"@atlaskit/editor-common": "^89.3.0",
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@atlaskit/feature-gate-js-client": "^4.19.0",
|
|
39
39
|
"@atlaskit/icon": "^22.18.0",
|
|
40
40
|
"@atlaskit/link-datasource": "^3.0.0",
|
|
41
|
-
"@atlaskit/media-card": "^78.
|
|
41
|
+
"@atlaskit/media-card": "^78.4.0",
|
|
42
42
|
"@atlaskit/media-client": "^28.0.0",
|
|
43
43
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
44
44
|
"@atlaskit/media-common": "^11.4.0",
|
|
45
45
|
"@atlaskit/media-filmstrip": "^47.2.0",
|
|
46
|
-
"@atlaskit/media-ui": "^25.
|
|
47
|
-
"@atlaskit/media-viewer": "^48.
|
|
46
|
+
"@atlaskit/media-ui": "^25.14.0",
|
|
47
|
+
"@atlaskit/media-viewer": "^48.10.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
49
|
"@atlaskit/smart-card": "^28.1.0",
|
|
50
50
|
"@atlaskit/status": "^1.4.0",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"@af/integration-testing": "*",
|
|
72
72
|
"@af/visual-regression": "*",
|
|
73
73
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
74
|
-
"@atlaskit/css-reset": "^6.
|
|
74
|
+
"@atlaskit/css-reset": "^6.11.0",
|
|
75
75
|
"@atlaskit/editor-test-helpers": "^18.33.0",
|
|
76
76
|
"@atlaskit/link-provider": "^1.16.0",
|
|
77
77
|
"@atlaskit/link-test-helpers": "^7.5.0",
|
|
78
78
|
"@atlaskit/linking-common": "^5.11.0",
|
|
79
79
|
"@atlaskit/media-core": "^34.3.0",
|
|
80
80
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
81
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
81
|
+
"@atlaskit/media-test-helpers": "^34.3.0",
|
|
82
82
|
"@atlaskit/mention": "^23.2.0",
|
|
83
83
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
84
84
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
@@ -131,9 +131,6 @@
|
|
|
131
131
|
"editor_inline_comments_on_inline_nodes": {
|
|
132
132
|
"type": "boolean"
|
|
133
133
|
},
|
|
134
|
-
"platform.editor.table.use-increased-scaling-percent": {
|
|
135
|
-
"type": "boolean"
|
|
136
|
-
},
|
|
137
134
|
"annotations_align_editor_and_renderer_styles": {
|
|
138
135
|
"type": "boolean"
|
|
139
136
|
},
|