@atlaskit/renderer 112.8.10 → 112.9.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 +20 -0
- package/dist/cjs/react/nodes/media/index.js +3 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +5 -0
- package/dist/es2019/react/nodes/media/index.js +3 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +5 -0
- package/dist/esm/react/nodes/media/index.js +3 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +5 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 112.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#104091](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104091)
|
|
8
|
+
[`633ced5621b07`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/633ced5621b07) -
|
|
9
|
+
[ux] Calling callback even for pages without comments in order to clear comment data
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 112.8.11
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#105386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105386)
|
|
20
|
+
[`d03cf19cf4251`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d03cf19cf4251) -
|
|
21
|
+
[ux] ED-26349 hide external media badge when images w or h is less then 200px
|
|
22
|
+
|
|
3
23
|
## 112.8.10
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -346,8 +346,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
346
346
|
mediaHeight: height,
|
|
347
347
|
useMinimumZIndex: true
|
|
348
348
|
}, function (_ref8) {
|
|
349
|
-
var badgeSize = _ref8.badgeSize
|
|
350
|
-
|
|
349
|
+
var badgeSize = _ref8.badgeSize,
|
|
350
|
+
visible = _ref8.visible;
|
|
351
|
+
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _platformFeatureFlags.fg)('platform_editor_hide_external_media_badge') ? visible && (0, _react2.jsx)(_mediaSingle.ExternalImageBadge, {
|
|
351
352
|
badgeSize: badgeSize,
|
|
352
353
|
type: _this.props.type,
|
|
353
354
|
url: _this.props.type === 'external' ? _this.props.url : undefined
|
|
@@ -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.
|
|
67
|
+
var packageVersion = "112.9.0";
|
|
68
68
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
69
69
|
containerName: 'ak-renderer-wrapper',
|
|
70
70
|
containerType: 'inline-size',
|
|
@@ -8,6 +8,7 @@ exports.useLoadAnnotations = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _types = require("@atlaskit/editor-common/types");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _context = require("../context");
|
|
12
13
|
var _RendererActionsContext = require("../../RendererActionsContext");
|
|
13
14
|
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; }
|
|
@@ -28,6 +29,10 @@ var useLoadAnnotations = exports.useLoadAnnotations = function useLoadAnnotation
|
|
|
28
29
|
var annotations = actions.getAnnotationMarks();
|
|
29
30
|
// we don't want to request integrators for state with an empty list of ids.
|
|
30
31
|
if (!annotations.length) {
|
|
32
|
+
if ((0, _platformFeatureFlags.fg)('use_comments_data_annotation_updater')) {
|
|
33
|
+
// inlineCommentGetState handles empty lists gracefully. It has a side-effect of clearing state, which is why this call is needed
|
|
34
|
+
inlineCommentGetState([], isNestedRender);
|
|
35
|
+
}
|
|
31
36
|
onLoadComplete && onLoadComplete({
|
|
32
37
|
numberOfUnresolvedInlineComments: 0
|
|
33
38
|
});
|
|
@@ -316,8 +316,9 @@ class Media extends PureComponent {
|
|
|
316
316
|
mediaHeight: height,
|
|
317
317
|
useMinimumZIndex: true
|
|
318
318
|
}, ({
|
|
319
|
-
badgeSize
|
|
320
|
-
|
|
319
|
+
badgeSize,
|
|
320
|
+
visible
|
|
321
|
+
}) => jsx(React.Fragment, null, fg('platform_editor_hide_external_media_badge') ? visible && jsx(ExternalImageBadge, {
|
|
321
322
|
badgeSize: badgeSize,
|
|
322
323
|
type: this.props.type,
|
|
323
324
|
url: this.props.type === 'external' ? this.props.url : undefined
|
|
@@ -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.
|
|
48
|
+
const packageVersion = "112.9.0";
|
|
49
49
|
const setAsQueryContainerStyles = css({
|
|
50
50
|
containerName: 'ak-renderer-wrapper',
|
|
51
51
|
containerType: 'inline-size',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useContext, useEffect } from 'react';
|
|
2
2
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { ProvidersContext } from '../context';
|
|
4
5
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
5
6
|
export const useLoadAnnotations = ({
|
|
@@ -22,6 +23,10 @@ export const useLoadAnnotations = ({
|
|
|
22
23
|
const annotations = actions.getAnnotationMarks();
|
|
23
24
|
// we don't want to request integrators for state with an empty list of ids.
|
|
24
25
|
if (!annotations.length) {
|
|
26
|
+
if (fg('use_comments_data_annotation_updater')) {
|
|
27
|
+
// inlineCommentGetState handles empty lists gracefully. It has a side-effect of clearing state, which is why this call is needed
|
|
28
|
+
inlineCommentGetState([], isNestedRender);
|
|
29
|
+
}
|
|
25
30
|
onLoadComplete && onLoadComplete({
|
|
26
31
|
numberOfUnresolvedInlineComments: 0
|
|
27
32
|
});
|
|
@@ -337,8 +337,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
337
337
|
mediaHeight: height,
|
|
338
338
|
useMinimumZIndex: true
|
|
339
339
|
}, function (_ref8) {
|
|
340
|
-
var badgeSize = _ref8.badgeSize
|
|
341
|
-
|
|
340
|
+
var badgeSize = _ref8.badgeSize,
|
|
341
|
+
visible = _ref8.visible;
|
|
342
|
+
return jsx(React.Fragment, null, fg('platform_editor_hide_external_media_badge') ? visible && jsx(ExternalImageBadge, {
|
|
342
343
|
badgeSize: badgeSize,
|
|
343
344
|
type: _this.props.type,
|
|
344
345
|
url: _this.props.type === 'external' ? _this.props.url : undefined
|
|
@@ -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.
|
|
57
|
+
var packageVersion = "112.9.0";
|
|
58
58
|
var setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size',
|
|
@@ -3,6 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { useContext, useEffect } from 'react';
|
|
5
5
|
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { ProvidersContext } from '../context';
|
|
7
8
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
8
9
|
export var useLoadAnnotations = function useLoadAnnotations(_ref) {
|
|
@@ -21,6 +22,10 @@ export var useLoadAnnotations = function useLoadAnnotations(_ref) {
|
|
|
21
22
|
var annotations = actions.getAnnotationMarks();
|
|
22
23
|
// we don't want to request integrators for state with an empty list of ids.
|
|
23
24
|
if (!annotations.length) {
|
|
25
|
+
if (fg('use_comments_data_annotation_updater')) {
|
|
26
|
+
// inlineCommentGetState handles empty lists gracefully. It has a side-effect of clearing state, which is why this call is needed
|
|
27
|
+
inlineCommentGetState([], isNestedRender);
|
|
28
|
+
}
|
|
24
29
|
onLoadComplete && onLoadComplete({
|
|
25
30
|
numberOfUnresolvedInlineComments: 0
|
|
26
31
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "112.
|
|
3
|
+
"version": "112.9.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/status": "^1.8.0",
|
|
51
51
|
"@atlaskit/task-decision": "^17.11.0",
|
|
52
52
|
"@atlaskit/theme": "^14.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^2.40.0",
|
|
54
54
|
"@atlaskit/tokens": "^3.2.0",
|
|
55
55
|
"@atlaskit/tooltip": "^19.0.0",
|
|
56
56
|
"@atlaskit/visually-hidden": "^1.5.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/media-core": "^34.4.0",
|
|
80
80
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
81
81
|
"@atlaskit/media-test-helpers": "^34.7.0",
|
|
82
|
-
"@atlaskit/mention": "^23.
|
|
82
|
+
"@atlaskit/mention": "^23.10.0",
|
|
83
83
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
84
84
|
"@atlaskit/util-data-test": "^17.13.0",
|
|
85
85
|
"@atlaskit/visual-regression": "*",
|
|
@@ -181,6 +181,9 @@
|
|
|
181
181
|
},
|
|
182
182
|
"platform_editor_nested_tables_renderer_colgroup": {
|
|
183
183
|
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
"use_comments_data_annotation_updater": {
|
|
186
|
+
"type": "boolean"
|
|
184
187
|
}
|
|
185
188
|
},
|
|
186
189
|
"af:exports": {
|