@atlaskit/renderer 112.6.3 → 112.6.5
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/media/index.js +6 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +6 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/media/index.js +6 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 112.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 112.6.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#165765](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165765)
|
|
14
|
+
[`3f441f30e6507`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f441f30e6507) -
|
|
15
|
+
Bump adf-schema to 46.0.0
|
|
16
|
+
- [#168624](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168624)
|
|
17
|
+
[`6d928c0cb9227`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d928c0cb9227) -
|
|
18
|
+
[ux] [ED-25832] Hide external image badges for atlassian.com domains
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 112.6.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -28,6 +28,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
28
28
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
29
29
|
var _utils = require("../../../utils");
|
|
30
30
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
31
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
31
32
|
var _events = require("../../../analytics/events");
|
|
32
33
|
var _annotation = _interopRequireDefault(require("../../marks/annotation"));
|
|
33
34
|
var _context = require("../../../ui/annotations/context");
|
|
@@ -337,7 +338,11 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
337
338
|
useMinimumZIndex: true
|
|
338
339
|
}, function (_ref8) {
|
|
339
340
|
var badgeSize = _ref8.badgeSize;
|
|
340
|
-
return (0, _react2.jsx)(_react.default.Fragment, null,
|
|
341
|
+
return (0, _react2.jsx)(_react.default.Fragment, null, (0, _platformFeatureFlags.fg)('platform_editor_hide_external_media_badge') ? (0, _react2.jsx)(_mediaSingle.ExternalImageBadge, {
|
|
342
|
+
badgeSize: badgeSize,
|
|
343
|
+
type: _this.props.type,
|
|
344
|
+
url: _this.props.type === 'external' ? _this.props.url : undefined
|
|
345
|
+
}) : shouldShowExternalMediaBadge && (0, _react2.jsx)(_mediaSingle.ExternalImageBadge, {
|
|
341
346
|
badgeSize: badgeSize
|
|
342
347
|
}), showCommentBadge && (0, _react2.jsx)(CommentBadgeNextWrapper, {
|
|
343
348
|
marks: annotationMarks,
|
|
@@ -65,7 +65,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
65
65
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
66
66
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
67
67
|
var packageName = "@atlaskit/renderer";
|
|
68
|
-
var packageVersion = "112.6.
|
|
68
|
+
var packageVersion = "112.6.5";
|
|
69
69
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size',
|
|
@@ -18,6 +18,7 @@ import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
|
18
18
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
19
19
|
import { getEventHandler } from '../../../utils';
|
|
20
20
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
|
|
21
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
21
22
|
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
22
23
|
import AnnotationComponent from '../../marks/annotation';
|
|
23
24
|
import { AnnotationsDraftContext } from '../../../ui/annotations/context';
|
|
@@ -304,7 +305,11 @@ class Media extends PureComponent {
|
|
|
304
305
|
useMinimumZIndex: true
|
|
305
306
|
}, ({
|
|
306
307
|
badgeSize
|
|
307
|
-
}) => jsx(React.Fragment, null,
|
|
308
|
+
}) => jsx(React.Fragment, null, fg('platform_editor_hide_external_media_badge') ? jsx(ExternalImageBadge, {
|
|
309
|
+
badgeSize: badgeSize,
|
|
310
|
+
type: this.props.type,
|
|
311
|
+
url: this.props.type === 'external' ? this.props.url : undefined
|
|
312
|
+
}) : shouldShowExternalMediaBadge && jsx(ExternalImageBadge, {
|
|
308
313
|
badgeSize: badgeSize
|
|
309
314
|
}), showCommentBadge && jsx(CommentBadgeNextWrapper, {
|
|
310
315
|
marks: annotationMarks,
|
|
@@ -45,7 +45,7 @@ import { countNodes } from './count-nodes';
|
|
|
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.6.
|
|
48
|
+
const packageVersion = "112.6.5";
|
|
49
49
|
const setAsQueryContainerStyles = css({
|
|
50
50
|
containerName: 'ak-renderer-wrapper',
|
|
51
51
|
containerType: 'inline-size',
|
|
@@ -34,6 +34,7 @@ import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
|
34
34
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
35
35
|
import { getEventHandler } from '../../../utils';
|
|
36
36
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, VIEW_METHOD } from '@atlaskit/editor-common/analytics';
|
|
37
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
37
38
|
import { MODE, PLATFORM } from '../../../analytics/events';
|
|
38
39
|
import AnnotationComponent from '../../marks/annotation';
|
|
39
40
|
import { AnnotationsDraftContext } from '../../../ui/annotations/context';
|
|
@@ -328,7 +329,11 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
328
329
|
useMinimumZIndex: true
|
|
329
330
|
}, function (_ref8) {
|
|
330
331
|
var badgeSize = _ref8.badgeSize;
|
|
331
|
-
return jsx(React.Fragment, null,
|
|
332
|
+
return jsx(React.Fragment, null, fg('platform_editor_hide_external_media_badge') ? jsx(ExternalImageBadge, {
|
|
333
|
+
badgeSize: badgeSize,
|
|
334
|
+
type: _this.props.type,
|
|
335
|
+
url: _this.props.type === 'external' ? _this.props.url : undefined
|
|
336
|
+
}) : shouldShowExternalMediaBadge && jsx(ExternalImageBadge, {
|
|
332
337
|
badgeSize: badgeSize
|
|
333
338
|
}), showCommentBadge && jsx(CommentBadgeNextWrapper, {
|
|
334
339
|
marks: annotationMarks,
|
|
@@ -55,7 +55,7 @@ import { countNodes } from './count-nodes';
|
|
|
55
55
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
56
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "112.6.
|
|
58
|
+
var packageVersion = "112.6.5";
|
|
59
59
|
var setAsQueryContainerStyles = css({
|
|
60
60
|
containerName: 'ak-renderer-wrapper',
|
|
61
61
|
containerType: 'inline-size',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "112.6.
|
|
3
|
+
"version": "112.6.5",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"runReact18": true
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@atlaskit/adf-schema": "^
|
|
26
|
-
"@atlaskit/adf-utils": "^19.
|
|
25
|
+
"@atlaskit/adf-schema": "^46.1.0",
|
|
26
|
+
"@atlaskit/adf-utils": "^19.14.0",
|
|
27
27
|
"@atlaskit/analytics-listeners": "^8.13.0",
|
|
28
28
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
29
29
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
30
30
|
"@atlaskit/button": "^20.3.0",
|
|
31
31
|
"@atlaskit/code": "^15.6.0",
|
|
32
|
-
"@atlaskit/editor-common": "^95.
|
|
32
|
+
"@atlaskit/editor-common": "^95.7.0",
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.3",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/media-ui": "^26.2.0",
|
|
47
47
|
"@atlaskit/media-viewer": "^49.4.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/smart-card": "^
|
|
49
|
+
"@atlaskit/smart-card": "^32.0.0",
|
|
50
50
|
"@atlaskit/status": "^1.8.0",
|
|
51
51
|
"@atlaskit/task-decision": "^17.11.0",
|
|
52
52
|
"@atlaskit/theme": "^14.0.0",
|
|
@@ -155,6 +155,9 @@
|
|
|
155
155
|
},
|
|
156
156
|
"platform_editor_use_nested_table_pm_nodes": {
|
|
157
157
|
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"platform_editor_hide_external_media_badge": {
|
|
160
|
+
"type": "boolean"
|
|
158
161
|
}
|
|
159
162
|
},
|
|
160
163
|
"af:exports": {
|