@atlaskit/renderer 109.40.3 → 109.40.4
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 +12 -0
- package/dist/cjs/actions/index.js +3 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/actions/index.js +3 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/actions/index.js +3 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.40.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#116344](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116344)
|
|
8
|
+
[`12f4724969d35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/12f4724969d35) -
|
|
9
|
+
Use caption as targetNodeType instead of text for annotation event
|
|
10
|
+
- [#114548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114548)
|
|
11
|
+
[`8b2d47bffb50e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2d47bffb50e) -
|
|
12
|
+
bump adf-schema version
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 109.40.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -275,7 +275,9 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
|
|
|
275
275
|
type: annotationType
|
|
276
276
|
}));
|
|
277
277
|
} else {
|
|
278
|
-
|
|
278
|
+
var resolvedNode = this.doc.resolve(from).node();
|
|
279
|
+
// annotation is technically on text, but the context is caption
|
|
280
|
+
targetNodeType = resolvedNode.type.name === 'caption' ? 'caption' : 'text';
|
|
279
281
|
step = (0, _steps.createAnnotationStep)(from, to, {
|
|
280
282
|
annotationId: annotationId,
|
|
281
283
|
annotationType: annotationType,
|
|
@@ -56,7 +56,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
56
56
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
57
57
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
58
58
|
var packageName = "@atlaskit/renderer";
|
|
59
|
-
var packageVersion = "109.40.
|
|
59
|
+
var packageVersion = "109.40.4";
|
|
60
60
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
61
61
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
62
62
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -251,7 +251,9 @@ export default class RendererActions {
|
|
|
251
251
|
type: annotationType
|
|
252
252
|
}));
|
|
253
253
|
} else {
|
|
254
|
-
|
|
254
|
+
const resolvedNode = this.doc.resolve(from).node();
|
|
255
|
+
// annotation is technically on text, but the context is caption
|
|
256
|
+
targetNodeType = resolvedNode.type.name === 'caption' ? 'caption' : 'text';
|
|
255
257
|
step = createAnnotationStep(from, to, {
|
|
256
258
|
annotationId,
|
|
257
259
|
annotationType,
|
|
@@ -38,7 +38,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
38
38
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
39
39
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
40
40
|
const packageName = "@atlaskit/renderer";
|
|
41
|
-
const packageVersion = "109.40.
|
|
41
|
+
const packageVersion = "109.40.4";
|
|
42
42
|
export const defaultNodeComponents = nodeToReact;
|
|
43
43
|
export class Renderer extends PureComponent {
|
|
44
44
|
constructor(props) {
|
|
@@ -268,7 +268,9 @@ var RendererActions = /*#__PURE__*/function () {
|
|
|
268
268
|
type: annotationType
|
|
269
269
|
}));
|
|
270
270
|
} else {
|
|
271
|
-
|
|
271
|
+
var resolvedNode = this.doc.resolve(from).node();
|
|
272
|
+
// annotation is technically on text, but the context is caption
|
|
273
|
+
targetNodeType = resolvedNode.type.name === 'caption' ? 'caption' : 'text';
|
|
272
274
|
step = createAnnotationStep(from, to, {
|
|
273
275
|
annotationId: annotationId,
|
|
274
276
|
annotationType: annotationType,
|
|
@@ -48,7 +48,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
48
48
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
49
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
50
|
var packageName = "@atlaskit/renderer";
|
|
51
|
-
var packageVersion = "109.40.
|
|
51
|
+
var packageVersion = "109.40.4";
|
|
52
52
|
export var defaultNodeComponents = nodeToReact;
|
|
53
53
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
54
54
|
_inherits(Renderer, _PureComponent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.40.
|
|
3
|
+
"version": "109.40.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"runReact18": true
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^
|
|
27
|
+
"@atlaskit/adf-schema": "^39.0.3",
|
|
28
28
|
"@atlaskit/adf-utils": "^19.4.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
32
32
|
"@atlaskit/button": "^18.0.0",
|
|
33
33
|
"@atlaskit/code": "^15.3.0",
|
|
34
|
-
"@atlaskit/editor-common": "^83.
|
|
34
|
+
"@atlaskit/editor-common": "^83.5.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.15.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.6.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "4.0.1",
|