@atlaskit/renderer 128.10.2 → 128.10.4
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 +16 -0
- package/dist/cjs/react/nodes/table/colgroup.js +1 -6
- package/dist/cjs/react/nodes/table.js +1 -3
- package/dist/cjs/react/nodes/tableNew.js +1 -3
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/table/colgroup.js +1 -6
- package/dist/es2019/react/nodes/table.js +1 -3
- package/dist/es2019/react/nodes/tableNew.js +1 -3
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/table/colgroup.js +1 -6
- package/dist/esm/react/nodes/table.js +1 -3
- package/dist/esm/react/nodes/tableNew.js +1 -3
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 128.10.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 128.10.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0ad738e8f896e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ad738e8f896e) -
|
|
14
|
+
Remove `support_table_in_comment` and `support_table_in_comment_jira` experiment references. Both
|
|
15
|
+
experiments are fully rolled out — table resizing, alignment, scaling, and distribute columns are
|
|
16
|
+
now enabled unconditionally in comment editors.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 128.10.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
12
12
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
13
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
14
|
var _nodeWidth = require("@atlaskit/editor-common/node-width");
|
|
16
15
|
var _useFeatureFlags = require("../../../use-feature-flags");
|
|
17
16
|
var _rendererContext = require("../../../renderer-context");
|
|
@@ -349,11 +348,7 @@ var Colgroup = exports.Colgroup = function Colgroup(props) {
|
|
|
349
348
|
})) !== null && _renderSyncBlockColgr !== void 0 ? _renderSyncBlockColgr : renderScaleDownColgroup(_objectSpread(_objectSpread({}, props), {}, {
|
|
350
349
|
isTopLevelRenderer: isTopLevelRenderer,
|
|
351
350
|
isInsideOfSyncBlock: isInsideOfSyncBlock,
|
|
352
|
-
isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment'
|
|
353
|
-
exposure: true
|
|
354
|
-
}) || props.rendererAppearance === 'comment' && (0, _experiments.editorExperiment)('support_table_in_comment_jira', true, {
|
|
355
|
-
exposure: true
|
|
356
|
-
}),
|
|
351
|
+
isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment',
|
|
357
352
|
isTableFixedColumnWidthsOptionEnabled: isTableFixedColumnWidthsOptionEnabled && (props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && ((0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) || (0, _expValEquals.expValEquals)('confluence_max_width_content_appearance', 'isEnabled', true)))
|
|
358
353
|
}));
|
|
359
354
|
if (!colStyles) {
|
|
@@ -39,9 +39,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
39
39
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
40
40
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
41
41
|
var isTableResizingEnabled = exports.isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
42
|
-
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance)
|
|
43
|
-
exposure: true
|
|
44
|
-
});
|
|
42
|
+
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance);
|
|
45
43
|
};
|
|
46
44
|
var isStickyScrollbarEnabled = exports.isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
|
|
47
45
|
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) && (0, _experiments.editorExperiment)('platform_renderer_table_sticky_scrollbar', true, {
|
|
@@ -51,9 +51,7 @@ var stickyContainerAdditionalStyles = {
|
|
|
51
51
|
zIndex: 1
|
|
52
52
|
};
|
|
53
53
|
var isTableResizingEnabled = exports.isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
54
|
-
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance)
|
|
55
|
-
exposure: true
|
|
56
|
-
});
|
|
54
|
+
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance);
|
|
57
55
|
};
|
|
58
56
|
var isStickyScrollbarEnabled = exports.isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
|
|
59
57
|
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) && (0, _experiments.editorExperiment)('platform_renderer_table_sticky_scrollbar', true, {
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "128.10.
|
|
74
|
+
var packageVersion = "128.10.3";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -2,7 +2,6 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { WidthContext } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
7
6
|
import { useFeatureFlags } from '../../../use-feature-flags';
|
|
8
7
|
import { useRendererContext } from '../../../renderer-context';
|
|
@@ -324,11 +323,7 @@ export const Colgroup = props => {
|
|
|
324
323
|
...props,
|
|
325
324
|
isTopLevelRenderer,
|
|
326
325
|
isInsideOfSyncBlock,
|
|
327
|
-
isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment'
|
|
328
|
-
exposure: true
|
|
329
|
-
}) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment_jira', true, {
|
|
330
|
-
exposure: true
|
|
331
|
-
}),
|
|
326
|
+
isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment',
|
|
332
327
|
isTableFixedColumnWidthsOptionEnabled: isTableFixedColumnWidthsOptionEnabled && (props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)))
|
|
333
328
|
});
|
|
334
329
|
if (!colStyles) {
|
|
@@ -20,9 +20,7 @@ import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFul
|
|
|
20
20
|
import { TableStickyScrollbar } from './TableStickyScrollbar';
|
|
21
21
|
import { TableProcessorWithContainerStyles } from './tableNew';
|
|
22
22
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
|
-
export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance)
|
|
24
|
-
exposure: true
|
|
25
|
-
});
|
|
23
|
+
export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
|
|
26
24
|
export const isStickyScrollbarEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
|
|
27
25
|
exposure: true
|
|
28
26
|
});
|
|
@@ -32,9 +32,7 @@ const stickyContainerAdditionalStyles = {
|
|
|
32
32
|
bottom: "var(--ds-space-0, 0px)",
|
|
33
33
|
zIndex: 1
|
|
34
34
|
};
|
|
35
|
-
export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance)
|
|
36
|
-
exposure: true
|
|
37
|
-
});
|
|
35
|
+
export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
|
|
38
36
|
export const isStickyScrollbarEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
|
|
39
37
|
exposure: true
|
|
40
38
|
});
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "128.10.
|
|
60
|
+
const packageVersion = "128.10.3";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -5,7 +5,6 @@ import React, { useContext } from 'react';
|
|
|
5
5
|
import { tableCellBorderWidth, tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { WidthContext } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
10
9
|
import { useFeatureFlags } from '../../../use-feature-flags';
|
|
11
10
|
import { useRendererContext } from '../../../renderer-context';
|
|
@@ -341,11 +340,7 @@ export var Colgroup = function Colgroup(props) {
|
|
|
341
340
|
})) !== null && _renderSyncBlockColgr !== void 0 ? _renderSyncBlockColgr : renderScaleDownColgroup(_objectSpread(_objectSpread({}, props), {}, {
|
|
342
341
|
isTopLevelRenderer: isTopLevelRenderer,
|
|
343
342
|
isInsideOfSyncBlock: isInsideOfSyncBlock,
|
|
344
|
-
isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment'
|
|
345
|
-
exposure: true
|
|
346
|
-
}) || props.rendererAppearance === 'comment' && editorExperiment('support_table_in_comment_jira', true, {
|
|
347
|
-
exposure: true
|
|
348
|
-
}),
|
|
343
|
+
isTableScalingEnabled: props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)) || props.rendererAppearance === 'comment',
|
|
349
344
|
isTableFixedColumnWidthsOptionEnabled: isTableFixedColumnWidthsOptionEnabled && (props.rendererAppearance === 'full-page' || props.rendererAppearance === 'full-width' || props.rendererAppearance === 'max' && (expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEquals('confluence_max_width_content_appearance', 'isEnabled', true)))
|
|
350
345
|
}));
|
|
351
346
|
if (!colStyles) {
|
|
@@ -32,9 +32,7 @@ import { TableStickyScrollbar } from './TableStickyScrollbar';
|
|
|
32
32
|
import { TableProcessorWithContainerStyles } from './tableNew';
|
|
33
33
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
34
34
|
export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
35
|
-
return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance)
|
|
36
|
-
exposure: true
|
|
37
|
-
});
|
|
35
|
+
return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
|
|
38
36
|
};
|
|
39
37
|
export var isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
|
|
40
38
|
return isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
|
|
@@ -45,9 +45,7 @@ var stickyContainerAdditionalStyles = {
|
|
|
45
45
|
zIndex: 1
|
|
46
46
|
};
|
|
47
47
|
export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
48
|
-
return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance)
|
|
49
|
-
exposure: true
|
|
50
|
-
});
|
|
48
|
+
return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance);
|
|
51
49
|
};
|
|
52
50
|
export var isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearance) {
|
|
53
51
|
return isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "128.10.
|
|
65
|
+
var packageVersion = "128.10.3";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "128.10.
|
|
3
|
+
"version": "128.10.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
39
|
-
"@atlaskit/editor-smart-link-draggable": "^0.
|
|
39
|
+
"@atlaskit/editor-smart-link-draggable": "^0.5.0",
|
|
40
40
|
"@atlaskit/emoji": "^69.12.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
42
42
|
"@atlaskit/icon": "^34.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/status": "^3.2.0",
|
|
60
60
|
"@atlaskit/task-decision": "^19.3.0",
|
|
61
61
|
"@atlaskit/theme": "^23.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^61.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^13.0.0",
|
|
64
64
|
"@atlaskit/tooltip": "^21.1.0",
|
|
65
65
|
"@atlaskit/visually-hidden": "^3.0.0",
|