@atlaskit/renderer 114.6.0 → 114.6.1
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 +9 -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 +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 114.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#132819](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132819)
|
|
8
|
+
[`f873ba0617c6b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f873ba0617c6b) -
|
|
9
|
+
ED-2684 Cleaned up platform_editor_nested_tables_renderer_colgroup to true behaviour.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 114.6.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -11,7 +11,6 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
13
|
var _nodeWidth = require("@atlaskit/editor-common/node-width");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _useFeatureFlags = require("../../../use-feature-flags");
|
|
16
15
|
var _rendererContext = require("../../../renderer-context");
|
|
17
16
|
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; }
|
|
@@ -90,7 +89,7 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
|
|
|
90
89
|
// appearance == comment && !allowTableResizing && !tableNode?.attrs.width, means it is a inline comment
|
|
91
90
|
// When comment and inline comment table width inherits from the parent container, we want tableContainerWidth === renderWidth
|
|
92
91
|
var tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested ? renderWidth : (0, _nodeWidth.getTableContainerWidth)(tableNode);
|
|
93
|
-
if (allowTableResizing && !isInsideOfBlockNode && !
|
|
92
|
+
if (allowTableResizing && !isInsideOfBlockNode && !isInsideOfTable && !isinsideMultiBodiedExtension && !tableColumnResized) {
|
|
94
93
|
// when no columns are resized, each column should have equal width, equals to tableWidth / noOfColumns
|
|
95
94
|
var _tableWidth2 = (isNumberColumnEnabled ? tableContainerWidth - _editorSharedStyles.akEditorTableNumberColumnWidth : tableContainerWidth) - 1;
|
|
96
95
|
var defaultColumnWidth = _tableWidth2 / noOfColumns;
|
|
@@ -67,7 +67,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
67
67
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
68
68
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
69
69
|
var packageName = "@atlaskit/renderer";
|
|
70
|
-
var packageVersion = "114.6.
|
|
70
|
+
var packageVersion = "114.6.1";
|
|
71
71
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
72
72
|
containerName: 'ak-renderer-wrapper',
|
|
73
73
|
containerType: 'inline-size',
|
|
@@ -3,7 +3,6 @@ import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common
|
|
|
3
3
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
5
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { useFeatureFlags } from '../../../use-feature-flags';
|
|
8
7
|
import { useRendererContext } from '../../../renderer-context';
|
|
9
8
|
|
|
@@ -78,7 +77,7 @@ const renderScaleDownColgroup = props => {
|
|
|
78
77
|
// appearance == comment && !allowTableResizing && !tableNode?.attrs.width, means it is a inline comment
|
|
79
78
|
// When comment and inline comment table width inherits from the parent container, we want tableContainerWidth === renderWidth
|
|
80
79
|
const tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested ? renderWidth : getTableContainerWidth(tableNode);
|
|
81
|
-
if (allowTableResizing && !isInsideOfBlockNode && !
|
|
80
|
+
if (allowTableResizing && !isInsideOfBlockNode && !isInsideOfTable && !isinsideMultiBodiedExtension && !tableColumnResized) {
|
|
82
81
|
// when no columns are resized, each column should have equal width, equals to tableWidth / noOfColumns
|
|
83
82
|
const tableWidth = (isNumberColumnEnabled ? tableContainerWidth - akEditorTableNumberColumnWidth : tableContainerWidth) - 1;
|
|
84
83
|
const defaultColumnWidth = tableWidth / noOfColumns;
|
|
@@ -48,7 +48,7 @@ import { removeEmptySpaceAroundContent } from './rendererHelper';
|
|
|
48
48
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
49
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
50
|
const packageName = "@atlaskit/renderer";
|
|
51
|
-
const packageVersion = "114.6.
|
|
51
|
+
const packageVersion = "114.6.1";
|
|
52
52
|
const setAsQueryContainerStyles = css({
|
|
53
53
|
containerName: 'ak-renderer-wrapper',
|
|
54
54
|
containerType: 'inline-size',
|
|
@@ -6,7 +6,6 @@ import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common
|
|
|
6
6
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
8
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { useFeatureFlags } from '../../../use-feature-flags';
|
|
11
10
|
import { useRendererContext } from '../../../renderer-context';
|
|
12
11
|
|
|
@@ -84,7 +83,7 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
|
|
|
84
83
|
// appearance == comment && !allowTableResizing && !tableNode?.attrs.width, means it is a inline comment
|
|
85
84
|
// When comment and inline comment table width inherits from the parent container, we want tableContainerWidth === renderWidth
|
|
86
85
|
var tableContainerWidth = rendererAppearance === 'comment' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) || isRendererNested ? renderWidth : getTableContainerWidth(tableNode);
|
|
87
|
-
if (allowTableResizing && !isInsideOfBlockNode && !
|
|
86
|
+
if (allowTableResizing && !isInsideOfBlockNode && !isInsideOfTable && !isinsideMultiBodiedExtension && !tableColumnResized) {
|
|
88
87
|
// when no columns are resized, each column should have equal width, equals to tableWidth / noOfColumns
|
|
89
88
|
var _tableWidth2 = (isNumberColumnEnabled ? tableContainerWidth - akEditorTableNumberColumnWidth : tableContainerWidth) - 1;
|
|
90
89
|
var defaultColumnWidth = _tableWidth2 / noOfColumns;
|
|
@@ -57,7 +57,7 @@ import { removeEmptySpaceAroundContent } from './rendererHelper';
|
|
|
57
57
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
58
58
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
59
59
|
var packageName = "@atlaskit/renderer";
|
|
60
|
-
var packageVersion = "114.6.
|
|
60
|
+
var packageVersion = "114.6.1";
|
|
61
61
|
var setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "114.6.
|
|
3
|
+
"version": "114.6.1",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -172,9 +172,6 @@
|
|
|
172
172
|
"platform_editor_accessible_heading_copy_link": {
|
|
173
173
|
"type": "boolean"
|
|
174
174
|
},
|
|
175
|
-
"platform_editor_nested_tables_renderer_colgroup": {
|
|
176
|
-
"type": "boolean"
|
|
177
|
-
},
|
|
178
175
|
"use_comments_data_annotation_updater": {
|
|
179
176
|
"type": "boolean"
|
|
180
177
|
},
|