@atlaskit/renderer 110.0.4 → 110.1.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 +8 -0
- package/dist/cjs/react/nodes/media/index.js +2 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +2 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/media/index.js +2 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 110.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#140717](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140717)
|
|
8
|
+
[`b68c21839cdb7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b68c21839cdb7) -
|
|
9
|
+
Remove platform.comments-on-media.bug.incorrect-badge-highlight feature gate
|
|
10
|
+
|
|
3
11
|
## 110.0.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -165,7 +165,7 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
165
165
|
var parentNode = mutation.target.parentNode;
|
|
166
166
|
if (mutation.attributeName === 'data-has-focus') {
|
|
167
167
|
var isMediaCaption = parentNode === null || parentNode === void 0 ? void 0 : parentNode.closest('[data-media-caption="true"]');
|
|
168
|
-
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) &&
|
|
168
|
+
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) && !isMediaCaption;
|
|
169
169
|
elementHasFocus ? setStatus('active') : setStatus('default');
|
|
170
170
|
}
|
|
171
171
|
});
|
|
@@ -244,7 +244,7 @@ var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
|
|
|
244
244
|
var parentNode = mutation.target.parentNode;
|
|
245
245
|
if (mutation.attributeName === 'data-has-focus') {
|
|
246
246
|
var isMediaCaption = parentNode === null || parentNode === void 0 ? void 0 : parentNode.closest('[data-media-caption="true"]');
|
|
247
|
-
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) &&
|
|
247
|
+
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) && !isMediaCaption;
|
|
248
248
|
elementHasFocus ? setStatus('active') : setStatus('default');
|
|
249
249
|
}
|
|
250
250
|
});
|
|
@@ -63,7 +63,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
63
63
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
64
64
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "110.0
|
|
66
|
+
var packageVersion = "110.1.0";
|
|
67
67
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
68
68
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
69
69
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -149,7 +149,7 @@ const CommentBadgeWrapper = ({
|
|
|
149
149
|
const parentNode = mutation.target.parentNode;
|
|
150
150
|
if (mutation.attributeName === 'data-has-focus') {
|
|
151
151
|
const isMediaCaption = parentNode === null || parentNode === void 0 ? void 0 : parentNode.closest('[data-media-caption="true"]');
|
|
152
|
-
const elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) &&
|
|
152
|
+
const elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) && !isMediaCaption;
|
|
153
153
|
elementHasFocus ? setStatus('active') : setStatus('default');
|
|
154
154
|
}
|
|
155
155
|
});
|
|
@@ -216,7 +216,7 @@ const CommentBadgeNextWrapper = ({
|
|
|
216
216
|
const parentNode = mutation.target.parentNode;
|
|
217
217
|
if (mutation.attributeName === 'data-has-focus') {
|
|
218
218
|
const isMediaCaption = parentNode === null || parentNode === void 0 ? void 0 : parentNode.closest('[data-media-caption="true"]');
|
|
219
|
-
const elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) &&
|
|
219
|
+
const elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) && !isMediaCaption;
|
|
220
220
|
elementHasFocus ? setStatus('active') : setStatus('default');
|
|
221
221
|
}
|
|
222
222
|
});
|
|
@@ -45,7 +45,7 @@ import { nodeToReact } from '../../react/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 = "110.0
|
|
48
|
+
const packageVersion = "110.1.0";
|
|
49
49
|
export const defaultNodeComponents = nodeToReact;
|
|
50
50
|
export class Renderer extends PureComponent {
|
|
51
51
|
constructor(props) {
|
|
@@ -156,7 +156,7 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
156
156
|
var parentNode = mutation.target.parentNode;
|
|
157
157
|
if (mutation.attributeName === 'data-has-focus') {
|
|
158
158
|
var isMediaCaption = parentNode === null || parentNode === void 0 ? void 0 : parentNode.closest('[data-media-caption="true"]');
|
|
159
|
-
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) &&
|
|
159
|
+
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) && !isMediaCaption;
|
|
160
160
|
elementHasFocus ? setStatus('active') : setStatus('default');
|
|
161
161
|
}
|
|
162
162
|
});
|
|
@@ -235,7 +235,7 @@ var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
|
|
|
235
235
|
var parentNode = mutation.target.parentNode;
|
|
236
236
|
if (mutation.attributeName === 'data-has-focus') {
|
|
237
237
|
var isMediaCaption = parentNode === null || parentNode === void 0 ? void 0 : parentNode.closest('[data-media-caption="true"]');
|
|
238
|
-
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) &&
|
|
238
|
+
var elementHasFocus = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.querySelector('[data-has-focus="true"]')) && !isMediaCaption;
|
|
239
239
|
elementHasFocus ? setStatus('active') : setStatus('default');
|
|
240
240
|
}
|
|
241
241
|
});
|
|
@@ -55,7 +55,7 @@ import { nodeToReact } from '../../react/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 = "110.0
|
|
58
|
+
var packageVersion = "110.1.0";
|
|
59
59
|
export var defaultNodeComponents = nodeToReact;
|
|
60
60
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
61
61
|
_inherits(Renderer, _PureComponent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "110.0
|
|
3
|
+
"version": "110.1.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -137,9 +137,6 @@
|
|
|
137
137
|
"annotations_align_editor_and_renderer_styles": {
|
|
138
138
|
"type": "boolean"
|
|
139
139
|
},
|
|
140
|
-
"platform.comments-on-media.bug.incorrect-badge-highlight": {
|
|
141
|
-
"type": "boolean"
|
|
142
|
-
},
|
|
143
140
|
"platform_editor_insert_media_plugin_phase_one": {
|
|
144
141
|
"type": "boolean"
|
|
145
142
|
},
|