@atlaskit/renderer 109.51.6 → 109.52.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 +18 -0
- package/dist/cjs/react/nodes/table.js +4 -2
- package/dist/cjs/ui/Renderer/index.js +8 -5
- package/dist/es2019/react/nodes/table.js +4 -2
- package/dist/es2019/ui/Renderer/index.js +5 -2
- package/dist/esm/react/nodes/table.js +4 -2
- package/dist/esm/ui/Renderer/index.js +5 -2
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.52.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#137755](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137755)
|
|
8
|
+
[`f3d004d4e3a3e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f3d004d4e3a3e) -
|
|
9
|
+
ED-24650 fix nested node jittering issue
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#137736](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137736)
|
|
14
|
+
[`2a88fdd213838`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2a88fdd213838) -
|
|
15
|
+
Introducing new smaller refined entry-points for editor-common to reduce bundle size.
|
|
16
|
+
- [#137404](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137404)
|
|
17
|
+
[`adae1f3dc8fca`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/adae1f3dc8fca) -
|
|
18
|
+
Switches Support Table in Comment features to use Statsig experiment instead of a Feature Gate.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 109.51.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -20,7 +20,7 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
20
20
|
var _types = require("@atlaskit/editor-common/types");
|
|
21
21
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
22
22
|
var _nodeWidth = require("@atlaskit/editor-common/node-width");
|
|
23
|
-
var
|
|
23
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
24
24
|
var _style = require("../../ui/Renderer/style");
|
|
25
25
|
var _tableCell = require("./tableCell");
|
|
26
26
|
var _SmartCardStorage = require("../../ui/SmartCardStorage");
|
|
@@ -33,7 +33,9 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
33
33
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
34
34
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
35
|
var isTableResizingEnabled = exports.isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
36
|
-
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance) && (0,
|
|
36
|
+
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
|
|
37
|
+
exposure: true
|
|
38
|
+
});
|
|
37
39
|
};
|
|
38
40
|
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus) {
|
|
39
41
|
if (!tableOrderStatus || tableOrderStatus.order === _types.SortOrder.NO_ORDER) {
|
|
@@ -22,6 +22,9 @@ var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
|
22
22
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
23
23
|
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
24
24
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
25
|
+
var _measureRender = require("@atlaskit/editor-common/performance/measure-render");
|
|
26
|
+
var _browser = require("@atlaskit/editor-common/browser");
|
|
27
|
+
var _navigation = require("@atlaskit/editor-common/performance/navigation");
|
|
25
28
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
29
|
var _normalizeFeatureFlags = require("@atlaskit/editor-common/normalize-feature-flags");
|
|
27
30
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
@@ -60,7 +63,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
60
63
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
61
64
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
62
65
|
var packageName = "@atlaskit/renderer";
|
|
63
|
-
var packageVersion = "109.
|
|
66
|
+
var packageVersion = "109.52.0";
|
|
64
67
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
65
68
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
66
69
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -73,7 +76,7 @@ var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
73
76
|
* This is used in measuring the Renderer Mount time and is then
|
|
74
77
|
* deleted once that measurement occurs.
|
|
75
78
|
*/
|
|
76
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderedMeasurementDistortedDurationMonitor", (0,
|
|
79
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderedMeasurementDistortedDurationMonitor", (0, _measureRender.getDistortedDurationMonitor)());
|
|
77
80
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "featureFlags", (0, _memoizeOne.default)(function (featureFlags) {
|
|
78
81
|
var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(featureFlags, {
|
|
79
82
|
objectFlagKeys: ['rendererRenderTracking']
|
|
@@ -105,10 +108,10 @@ var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
105
108
|
});
|
|
106
109
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleMouseTripleClickInTables", function (event) {
|
|
107
110
|
var _parentElement, _parentElement2;
|
|
108
|
-
if (
|
|
111
|
+
if (_browser.browser.ios || _browser.browser.android) {
|
|
109
112
|
return;
|
|
110
113
|
}
|
|
111
|
-
var badBrowser =
|
|
114
|
+
var badBrowser = _browser.browser.chrome || _browser.browser.safari;
|
|
112
115
|
var tripleClick = event.detail >= 3;
|
|
113
116
|
if (!(badBrowser && tripleClick)) {
|
|
114
117
|
return;
|
|
@@ -221,7 +224,7 @@ var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
221
224
|
platform: _events.PLATFORM.WEB,
|
|
222
225
|
duration: duration,
|
|
223
226
|
distortedDuration: _this2.renderedMeasurementDistortedDurationMonitor.distortedDuration,
|
|
224
|
-
ttfb: (0,
|
|
227
|
+
ttfb: (0, _navigation.getResponseEndTime)(),
|
|
225
228
|
nodes: (0, _traverse.reduce)(_this2.props.document, function (acc, node) {
|
|
226
229
|
acc[node.type] = (acc[node.type] || 0) + 1;
|
|
227
230
|
return acc;
|
|
@@ -7,14 +7,16 @@ import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMerged
|
|
|
7
7
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
10
|
-
import {
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
11
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
12
12
|
import { TableHeader } from './tableCell';
|
|
13
13
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
14
14
|
import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
|
|
15
15
|
import { Table } from './table/table';
|
|
16
16
|
import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
|
|
17
|
-
export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) &&
|
|
17
|
+
export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) && editorExperiment('support_table_in_comment', true, {
|
|
18
|
+
exposure: true
|
|
19
|
+
});
|
|
18
20
|
const orderChildren = (children, tableNode, smartCardStorage, tableOrderStatus) => {
|
|
19
21
|
if (!tableOrderStatus || tableOrderStatus.order === SortOrder.NO_ORDER) {
|
|
20
22
|
return children;
|
|
@@ -12,7 +12,10 @@ import { reduce } from '@atlaskit/adf-utils/traverse';
|
|
|
12
12
|
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
13
13
|
import { UnsupportedBlock, BaseTheme, WidthProvider, WithCreateAnalyticsEvent, IntlErrorBoundary } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
15
|
-
import { getAnalyticsAppearance, getAnalyticsEventSeverity,
|
|
15
|
+
import { getAnalyticsAppearance, getAnalyticsEventSeverity, shouldForceTracking, measureTTI } from '@atlaskit/editor-common/utils';
|
|
16
|
+
import { getDistortedDurationMonitor } from '@atlaskit/editor-common/performance/measure-render';
|
|
17
|
+
import { browser } from '@atlaskit/editor-common/browser';
|
|
18
|
+
import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
|
|
16
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
20
|
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
18
21
|
import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
|
|
@@ -42,7 +45,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
42
45
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
43
46
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
44
47
|
const packageName = "@atlaskit/renderer";
|
|
45
|
-
const packageVersion = "109.
|
|
48
|
+
const packageVersion = "109.52.0";
|
|
46
49
|
export const defaultNodeComponents = nodeToReact;
|
|
47
50
|
export class Renderer extends PureComponent {
|
|
48
51
|
constructor(props) {
|
|
@@ -18,7 +18,7 @@ import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMerged
|
|
|
18
18
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
19
19
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
20
20
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
21
|
-
import {
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
22
|
import { FullPagePadding } from '../../ui/Renderer/style';
|
|
23
23
|
import { TableHeader } from './tableCell';
|
|
24
24
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
@@ -26,7 +26,9 @@ import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky'
|
|
|
26
26
|
import { Table } from './table/table';
|
|
27
27
|
import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
|
|
28
28
|
export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
29
|
-
return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) &&
|
|
29
|
+
return isFullWidthOrFullPageAppearance(appearance) || isCommentAppearance(appearance) && editorExperiment('support_table_in_comment', true, {
|
|
30
|
+
exposure: true
|
|
31
|
+
});
|
|
30
32
|
};
|
|
31
33
|
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus) {
|
|
32
34
|
if (!tableOrderStatus || tableOrderStatus.order === SortOrder.NO_ORDER) {
|
|
@@ -22,7 +22,10 @@ import { reduce } from '@atlaskit/adf-utils/traverse';
|
|
|
22
22
|
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
23
23
|
import { UnsupportedBlock, BaseTheme, WidthProvider, WithCreateAnalyticsEvent, IntlErrorBoundary } from '@atlaskit/editor-common/ui';
|
|
24
24
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
25
|
-
import { getAnalyticsAppearance, getAnalyticsEventSeverity,
|
|
25
|
+
import { getAnalyticsAppearance, getAnalyticsEventSeverity, shouldForceTracking, measureTTI } from '@atlaskit/editor-common/utils';
|
|
26
|
+
import { getDistortedDurationMonitor } from '@atlaskit/editor-common/performance/measure-render';
|
|
27
|
+
import { browser } from '@atlaskit/editor-common/browser';
|
|
28
|
+
import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
|
|
26
29
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
30
|
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
28
31
|
import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
|
|
@@ -52,7 +55,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
52
55
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
53
56
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
54
57
|
var packageName = "@atlaskit/renderer";
|
|
55
|
-
var packageVersion = "109.
|
|
58
|
+
var packageVersion = "109.52.0";
|
|
56
59
|
export var defaultNodeComponents = nodeToReact;
|
|
57
60
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
58
61
|
_inherits(Renderer, _PureComponent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.
|
|
3
|
+
"version": "109.52.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,14 +29,14 @@
|
|
|
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": "^88.
|
|
32
|
+
"@atlaskit/editor-common": "^88.11.0",
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
37
37
|
"@atlaskit/emoji": "^67.7.0",
|
|
38
38
|
"@atlaskit/feature-gate-js-client": "^4.18.0",
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
39
|
+
"@atlaskit/icon": "^22.16.0",
|
|
40
40
|
"@atlaskit/link-datasource": "^2.12.0",
|
|
41
41
|
"@atlaskit/media-card": "^78.2.0",
|
|
42
42
|
"@atlaskit/media-client": "^27.6.0",
|
|
@@ -128,9 +128,6 @@
|
|
|
128
128
|
"platform.editor.inline_extension.extended_lcqdn": {
|
|
129
129
|
"type": "boolean"
|
|
130
130
|
},
|
|
131
|
-
"platform_editor_table_support_in_comment": {
|
|
132
|
-
"type": "boolean"
|
|
133
|
-
},
|
|
134
131
|
"editor_inline_comments_on_inline_nodes": {
|
|
135
132
|
"type": "boolean"
|
|
136
133
|
},
|