@atlaskit/renderer 124.1.6 → 124.1.7
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 +7 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/annotations/selection/mounter.js +6 -20
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +6 -20
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/annotations/selection/mounter.js +6 -20
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8cfc5fed7dc74`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8cfc5fed7dc74) -
|
|
8
|
+
Cleanup annotations_defensive_node_name_calculations
|
|
9
|
+
|
|
3
10
|
## 124.1.6
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -68,7 +68,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
68
68
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
69
69
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
70
70
|
var packageName = "@atlaskit/renderer";
|
|
71
|
-
var packageVersion = "
|
|
71
|
+
var packageVersion = "124.1.6";
|
|
72
72
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
73
73
|
containerName: 'ak-renderer-wrapper',
|
|
74
74
|
containerType: 'inline-size'
|
|
@@ -42,27 +42,13 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
|
|
|
42
42
|
annotationManager = _useAnnotationManager2.annotationManager,
|
|
43
43
|
dispatch = _useAnnotationManager2.dispatch;
|
|
44
44
|
var inlineNodeTypes = (0, _react.useMemo)(function () {
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
return (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
50
|
-
pos: documentPosition,
|
|
51
|
-
actions: actions
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
if (!(0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
if (actions.isValidAnnotationRange(range)) {
|
|
58
|
-
return (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
59
|
-
pos: documentPosition,
|
|
60
|
-
actions: actions
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
45
|
+
if (!actions.isRangeAnnotatable(range)) {
|
|
46
|
+
return undefined;
|
|
65
47
|
}
|
|
48
|
+
return (0, _getRendererRangeInlineNodeNames.getRendererRangeInlineNodeNames)({
|
|
49
|
+
pos: documentPosition,
|
|
50
|
+
actions: actions
|
|
51
|
+
});
|
|
66
52
|
}, [documentPosition, actions, range]);
|
|
67
53
|
var onCreateCallback = (0, _react.useCallback)(function (annotationId) {
|
|
68
54
|
// We want to support creation on a documentPosition if the user is only using ranges
|
|
@@ -54,7 +54,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
54
54
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
55
55
|
const TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
56
56
|
const packageName = "@atlaskit/renderer";
|
|
57
|
-
const packageVersion = "
|
|
57
|
+
const packageVersion = "124.1.6";
|
|
58
58
|
const setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -39,27 +39,13 @@ export const SelectionInlineCommentMounter = /*#__PURE__*/React.memo(props => {
|
|
|
39
39
|
dispatch
|
|
40
40
|
} = useAnnotationManagerDispatch();
|
|
41
41
|
const inlineNodeTypes = useMemo(() => {
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
return undefined;
|
|
45
|
-
}
|
|
46
|
-
return getRendererRangeInlineNodeNames({
|
|
47
|
-
pos: documentPosition,
|
|
48
|
-
actions
|
|
49
|
-
});
|
|
50
|
-
} else {
|
|
51
|
-
if (!fg('editor_inline_comments_on_inline_nodes')) {
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
54
|
-
if (actions.isValidAnnotationRange(range)) {
|
|
55
|
-
return getRendererRangeInlineNodeNames({
|
|
56
|
-
pos: documentPosition,
|
|
57
|
-
actions
|
|
58
|
-
});
|
|
59
|
-
} else {
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
42
|
+
if (!actions.isRangeAnnotatable(range)) {
|
|
43
|
+
return undefined;
|
|
62
44
|
}
|
|
45
|
+
return getRendererRangeInlineNodeNames({
|
|
46
|
+
pos: documentPosition,
|
|
47
|
+
actions
|
|
48
|
+
});
|
|
63
49
|
}, [documentPosition, actions, range]);
|
|
64
50
|
const onCreateCallback = useCallback(annotationId => {
|
|
65
51
|
// We want to support creation on a documentPosition if the user is only using ranges
|
|
@@ -59,7 +59,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
59
59
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
60
60
|
var TABLE_WIDTH_INFO_TIMEOUT = 10000;
|
|
61
61
|
var packageName = "@atlaskit/renderer";
|
|
62
|
-
var packageVersion = "
|
|
62
|
+
var packageVersion = "124.1.6";
|
|
63
63
|
var setAsQueryContainerStyles = css({
|
|
64
64
|
containerName: 'ak-renderer-wrapper',
|
|
65
65
|
containerType: 'inline-size'
|
|
@@ -33,27 +33,13 @@ export var SelectionInlineCommentMounter = /*#__PURE__*/React.memo(function (pro
|
|
|
33
33
|
annotationManager = _useAnnotationManager2.annotationManager,
|
|
34
34
|
dispatch = _useAnnotationManager2.dispatch;
|
|
35
35
|
var inlineNodeTypes = useMemo(function () {
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
return getRendererRangeInlineNodeNames({
|
|
41
|
-
pos: documentPosition,
|
|
42
|
-
actions: actions
|
|
43
|
-
});
|
|
44
|
-
} else {
|
|
45
|
-
if (!fg('editor_inline_comments_on_inline_nodes')) {
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
if (actions.isValidAnnotationRange(range)) {
|
|
49
|
-
return getRendererRangeInlineNodeNames({
|
|
50
|
-
pos: documentPosition,
|
|
51
|
-
actions: actions
|
|
52
|
-
});
|
|
53
|
-
} else {
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
36
|
+
if (!actions.isRangeAnnotatable(range)) {
|
|
37
|
+
return undefined;
|
|
56
38
|
}
|
|
39
|
+
return getRendererRangeInlineNodeNames({
|
|
40
|
+
pos: documentPosition,
|
|
41
|
+
actions: actions
|
|
42
|
+
});
|
|
57
43
|
}, [documentPosition, actions, range]);
|
|
58
44
|
var onCreateCallback = useCallback(function (annotationId) {
|
|
59
45
|
// We want to support creation on a documentPosition if the user is only using ranges
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.1.
|
|
3
|
+
"version": "124.1.7",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -146,9 +146,6 @@
|
|
|
146
146
|
"platform_editor_typography_ugc": {
|
|
147
147
|
"type": "boolean"
|
|
148
148
|
},
|
|
149
|
-
"annotations_defensive_node_name_calculations": {
|
|
150
|
-
"type": "boolean"
|
|
151
|
-
},
|
|
152
149
|
"editor_inline_comments_on_inline_nodes": {
|
|
153
150
|
"type": "boolean"
|
|
154
151
|
},
|