@atlaskit/renderer 112.10.0 → 112.11.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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 112.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#106689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106689)
8
+ [`58f30540d829f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/58f30540d829f) -
9
+ [ux] Preventing comments data clearing on nested renders to avoid infinite rerendering
10
+
3
11
  ## 112.10.0
4
12
 
5
13
  ### Minor Changes
@@ -64,7 +64,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
64
64
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
65
65
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
66
66
  var packageName = "@atlaskit/renderer";
67
- var packageVersion = "112.10.0";
67
+ var packageVersion = "112.11.0";
68
68
  var setAsQueryContainerStyles = (0, _react2.css)({
69
69
  containerName: 'ak-renderer-wrapper',
70
70
  containerType: 'inline-size',
@@ -29,7 +29,7 @@ var useLoadAnnotations = exports.useLoadAnnotations = function useLoadAnnotation
29
29
  var annotations = actions.getAnnotationMarks();
30
30
  // we don't want to request integrators for state with an empty list of ids.
31
31
  if (!annotations.length) {
32
- if ((0, _platformFeatureFlags.fg)('use_comments_data_annotation_updater')) {
32
+ if (!isNestedRender && (0, _platformFeatureFlags.fg)('use_comments_data_annotation_updater')) {
33
33
  // inlineCommentGetState handles empty lists gracefully. It has a side-effect of clearing state, which is why this call is needed
34
34
  inlineCommentGetState([], isNestedRender);
35
35
  }
@@ -45,7 +45,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
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 = "112.10.0";
48
+ const packageVersion = "112.11.0";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -23,7 +23,7 @@ export const useLoadAnnotations = ({
23
23
  const annotations = actions.getAnnotationMarks();
24
24
  // we don't want to request integrators for state with an empty list of ids.
25
25
  if (!annotations.length) {
26
- if (fg('use_comments_data_annotation_updater')) {
26
+ if (!isNestedRender && fg('use_comments_data_annotation_updater')) {
27
27
  // inlineCommentGetState handles empty lists gracefully. It has a side-effect of clearing state, which is why this call is needed
28
28
  inlineCommentGetState([], isNestedRender);
29
29
  }
@@ -54,7 +54,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
54
54
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
55
55
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  var packageName = "@atlaskit/renderer";
57
- var packageVersion = "112.10.0";
57
+ var packageVersion = "112.11.0";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size',
@@ -22,7 +22,7 @@ export var useLoadAnnotations = function useLoadAnnotations(_ref) {
22
22
  var annotations = actions.getAnnotationMarks();
23
23
  // we don't want to request integrators for state with an empty list of ids.
24
24
  if (!annotations.length) {
25
- if (fg('use_comments_data_annotation_updater')) {
25
+ if (!isNestedRender && fg('use_comments_data_annotation_updater')) {
26
26
  // inlineCommentGetState handles empty lists gracefully. It has a side-effect of clearing state, which is why this call is needed
27
27
  inlineCommentGetState([], isNestedRender);
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "112.10.0",
3
+ "version": "112.11.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"