@atlaskit/renderer 120.5.4 → 120.5.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,13 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 120.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`62c653b8741a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/62c653b8741a5) -
8
+ [EDITOR-1202] Dates are formatted correctly for blockTaskItems
9
+ - Updated dependencies
10
+
3
11
  ## 120.5.4
4
12
 
5
13
  ### Patch Changes
@@ -67,7 +67,10 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
67
67
  parentInfo = _ref.parentInfo;
68
68
  var pos = _this.startPos;
69
69
  var currentPath = parentInfo && parentInfo.path || [];
70
- var parentIsIncompleteTask = node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && (0, _expValEquals.expValEquals)('platform_editor_blocktaskitem_node', 'isEnabled', true) && node.attrs.state !== 'DONE';
70
+ var parentIsIncompleteTask = (node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && (0, _expValEquals.expValEquals)('platform_editor_blocktaskitem_node', 'isEnabled', true)) && node.attrs.state !== 'DONE' ||
71
+ // If blockTaskItem is in the schema, check if the parent of the current node
72
+ // is an incomplete task item, because blockTaskItems can have nested nodes
73
+ node.type.schema.nodes.blockTaskItem && (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.parentIsIncompleteTask) === true && (0, _expValEquals.expValEquals)('platform_editor_blocktaskitem_node', 'isEnabled', true);
71
74
  var nodeKey = "".concat(node.type.name, "__").concat(_this.startPos);
72
75
  var serializedContent = _this.serializeFragment(node.content, _this.getNodeProps(node, parentInfo), (0, _nodes.toReact)(node, {
73
76
  allowSelectAllTrap: _this.allowSelectAllTrap,
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
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 = "120.5.3";
66
+ var packageVersion = "0.0.0-development";
67
67
  var setAsQueryContainerStyles = (0, _react2.css)({
68
68
  containerName: 'ak-renderer-wrapper',
69
69
  containerType: 'inline-size'
@@ -52,7 +52,10 @@ export default class ReactSerializer {
52
52
  }) => {
53
53
  const pos = this.startPos;
54
54
  const currentPath = parentInfo && parentInfo.path || [];
55
- const parentIsIncompleteTask = node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true) && node.attrs.state !== 'DONE';
55
+ const parentIsIncompleteTask = (node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true)) && node.attrs.state !== 'DONE' ||
56
+ // If blockTaskItem is in the schema, check if the parent of the current node
57
+ // is an incomplete task item, because blockTaskItems can have nested nodes
58
+ node.type.schema.nodes.blockTaskItem && (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.parentIsIncompleteTask) === true && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true);
56
59
  const nodeKey = `${node.type.name}__${this.startPos}`;
57
60
  const serializedContent = this.serializeFragment(node.content, this.getNodeProps(node, parentInfo), toReact(node, {
58
61
  allowSelectAllTrap: this.allowSelectAllTrap,
@@ -49,7 +49,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
49
49
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
50
50
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
51
51
  const packageName = "@atlaskit/renderer";
52
- const packageVersion = "120.5.3";
52
+ const packageVersion = "0.0.0-development";
53
53
  const setAsQueryContainerStyles = css({
54
54
  containerName: 'ak-renderer-wrapper',
55
55
  containerType: 'inline-size'
@@ -60,7 +60,10 @@ var ReactSerializer = /*#__PURE__*/function () {
60
60
  parentInfo = _ref.parentInfo;
61
61
  var pos = _this.startPos;
62
62
  var currentPath = parentInfo && parentInfo.path || [];
63
- var parentIsIncompleteTask = node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true) && node.attrs.state !== 'DONE';
63
+ var parentIsIncompleteTask = (node.type.name === 'taskItem' || node.type.name === 'blockTaskItem' && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true)) && node.attrs.state !== 'DONE' ||
64
+ // If blockTaskItem is in the schema, check if the parent of the current node
65
+ // is an incomplete task item, because blockTaskItems can have nested nodes
66
+ node.type.schema.nodes.blockTaskItem && (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.parentIsIncompleteTask) === true && expValEquals('platform_editor_blocktaskitem_node', 'isEnabled', true);
64
67
  var nodeKey = "".concat(node.type.name, "__").concat(_this.startPos);
65
68
  var serializedContent = _this.serializeFragment(node.content, _this.getNodeProps(node, parentInfo), toReact(node, {
66
69
  allowSelectAllTrap: _this.allowSelectAllTrap,
@@ -54,7 +54,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
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 = "120.5.3";
57
+ var packageVersion = "0.0.0-development";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "120.5.4",
3
+ "version": "120.5.5",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -68,7 +68,7 @@
68
68
  "uuid": "^3.1.0"
69
69
  },
70
70
  "peerDependencies": {
71
- "@atlaskit/editor-common": "^107.31.0",
71
+ "@atlaskit/editor-common": "^107.32.0",
72
72
  "@atlaskit/link-provider": "^3.7.0",
73
73
  "@atlaskit/media-core": "^37.0.0",
74
74
  "react": "^18.2.0",