@atlaskit/renderer 120.5.4 → 120.5.6
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 +16 -0
- package/dist/cjs/react/index.js +4 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/index.js +4 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/index.js +4 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 120.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a2cd8c46a3e94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2cd8c46a3e94) -
|
|
8
|
+
EDITOR-1442 Bump adf-schema
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 120.5.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`62c653b8741a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/62c653b8741a5) -
|
|
16
|
+
[EDITOR-1202] Dates are formatted correctly for blockTaskItems
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 120.5.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/react/index.js
CHANGED
|
@@ -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.
|
|
66
|
+
var packageVersion = "120.5.5";
|
|
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.
|
|
52
|
+
const packageVersion = "120.5.5";
|
|
53
53
|
const setAsQueryContainerStyles = css({
|
|
54
54
|
containerName: 'ak-renderer-wrapper',
|
|
55
55
|
containerType: 'inline-size'
|
package/dist/esm/react/index.js
CHANGED
|
@@ -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.
|
|
57
|
+
var packageVersion = "120.5.5";
|
|
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.
|
|
3
|
+
"version": "120.5.6",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
26
|
+
"@atlaskit/adf-schema": "^50.2.3",
|
|
27
27
|
"@atlaskit/adf-utils": "^19.21.0",
|
|
28
28
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
29
29
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
52
52
|
"@atlaskit/react-ufo": "^4.5.0",
|
|
53
|
-
"@atlaskit/smart-card": "^40.
|
|
53
|
+
"@atlaskit/smart-card": "^40.14.0",
|
|
54
54
|
"@atlaskit/status": "^3.0.0",
|
|
55
55
|
"@atlaskit/task-decision": "^19.2.0",
|
|
56
56
|
"@atlaskit/theme": "^20.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^11.9.0",
|
|
58
58
|
"@atlaskit/tokens": "^6.1.0",
|
|
59
59
|
"@atlaskit/tooltip": "^20.4.0",
|
|
60
60
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"uuid": "^3.1.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@atlaskit/editor-common": "^107.
|
|
71
|
+
"@atlaskit/editor-common": "^107.33.0",
|
|
72
72
|
"@atlaskit/link-provider": "^3.7.0",
|
|
73
73
|
"@atlaskit/media-core": "^37.0.0",
|
|
74
74
|
"react": "^18.2.0",
|