@atlaskit/renderer 109.40.3 → 109.40.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.40.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#116410](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116410)
8
+ [`ce3834d457869`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce3834d457869) -
9
+ [ED-23887] Add unit tests for nested renderers invalid range bug fix.
10
+ - Updated dependencies
11
+
12
+ ## 109.40.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [#116344](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116344)
17
+ [`12f4724969d35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/12f4724969d35) -
18
+ Use caption as targetNodeType instead of text for annotation event
19
+ - [#114548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114548)
20
+ [`8b2d47bffb50e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2d47bffb50e) -
21
+ bump adf-schema version
22
+ - Updated dependencies
23
+
3
24
  ## 109.40.3
4
25
 
5
26
  ### Patch Changes
@@ -275,7 +275,9 @@ var RendererActions = exports.default = /*#__PURE__*/function () {
275
275
  type: annotationType
276
276
  }));
277
277
  } else {
278
- targetNodeType = 'text';
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.3";
59
+ var packageVersion = "109.40.5";
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
- targetNodeType = 'text';
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.3";
41
+ const packageVersion = "109.40.5";
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
- targetNodeType = 'text';
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.3";
51
+ var packageVersion = "109.40.5";
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",
3
+ "version": "109.40.5",
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": "^38.0.0",
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
- "@atlaskit/button": "^18.0.0",
32
+ "@atlaskit/button": "^18.1.0",
33
33
  "@atlaskit/code": "^15.3.0",
34
- "@atlaskit/editor-common": "^83.4.0",
34
+ "@atlaskit/editor-common": "^83.6.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",