@atlaskit/renderer 120.3.6 → 120.3.7
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/blockCard.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +3 -2
- package/dist/es2019/react/nodes/blockCard.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +3 -2
- package/dist/esm/react/nodes/blockCard.js +1 -1
- package/dist/esm/ui/Renderer/index.js +3 -2
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 120.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5e286a9dc4933`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e286a9dc4933) -
|
|
8
|
+
EDITOR-1230 Created isAdfStreamingEnabled to check if adf streaming is enabled or not.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 120.3.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -136,7 +136,7 @@ function BlockCard(props) {
|
|
|
136
136
|
}, cardProps, {
|
|
137
137
|
url: url,
|
|
138
138
|
onError: onError,
|
|
139
|
-
hideIconLoadingSkeleton:
|
|
139
|
+
hideIconLoadingSkeleton: true
|
|
140
140
|
}));
|
|
141
141
|
} else {
|
|
142
142
|
cardComponent = (0, _react.jsx)(_smartCard.Card, (0, _extends2.default)({
|
|
@@ -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.3.
|
|
66
|
+
var packageVersion = "120.3.6";
|
|
67
67
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
|
@@ -600,7 +600,8 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
600
600
|
* Telepointer changes will also cause a childList mutation, so we manually ignore it.
|
|
601
601
|
* Telepointer changes are always a singular node-adds or node-removes.
|
|
602
602
|
*/
|
|
603
|
-
|
|
603
|
+
var isAdfStreamingEnabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_iw_adf_streaming', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true);
|
|
604
|
+
if (isAdfStreamingEnabled && mutation.type === 'childList' && !(mutation.addedNodes.length === 1 && ((_mutation$addedNodes$ = mutation.addedNodes[0]) === null || _mutation$addedNodes$ === void 0 ? void 0 : _mutation$addedNodes$.id) === _style.TELEPOINTER_ID || mutation.removedNodes.length === 1 && ((_mutation$removedNode = mutation.removedNodes[0]) === null || _mutation$removedNode === void 0 ? void 0 : _mutation$removedNode.id) === _style.TELEPOINTER_ID)) {
|
|
604
605
|
var _lastChild2 = _renderer.lastChild;
|
|
605
606
|
if (_lastChild2) {
|
|
606
607
|
/**
|
|
@@ -123,7 +123,7 @@ export default function BlockCard(props) {
|
|
|
123
123
|
}, cardProps, {
|
|
124
124
|
url: url,
|
|
125
125
|
onError: onError,
|
|
126
|
-
hideIconLoadingSkeleton:
|
|
126
|
+
hideIconLoadingSkeleton: true
|
|
127
127
|
}));
|
|
128
128
|
} else {
|
|
129
129
|
cardComponent = jsx(Card, _extends({
|
|
@@ -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.3.
|
|
52
|
+
const packageVersion = "120.3.6";
|
|
53
53
|
const setAsQueryContainerStyles = css({
|
|
54
54
|
containerName: 'ak-renderer-wrapper',
|
|
55
55
|
containerType: 'inline-size'
|
|
@@ -586,7 +586,8 @@ const RendererWrapper = /*#__PURE__*/React.memo(props => {
|
|
|
586
586
|
* Telepointer changes will also cause a childList mutation, so we manually ignore it.
|
|
587
587
|
* Telepointer changes are always a singular node-adds or node-removes.
|
|
588
588
|
*/
|
|
589
|
-
|
|
589
|
+
const isAdfStreamingEnabled = expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true);
|
|
590
|
+
if (isAdfStreamingEnabled && mutation.type === 'childList' && !(mutation.addedNodes.length === 1 && ((_mutation$addedNodes$ = mutation.addedNodes[0]) === null || _mutation$addedNodes$ === void 0 ? void 0 : _mutation$addedNodes$.id) === TELEPOINTER_ID || mutation.removedNodes.length === 1 && ((_mutation$removedNode = mutation.removedNodes[0]) === null || _mutation$removedNode === void 0 ? void 0 : _mutation$removedNode.id) === TELEPOINTER_ID)) {
|
|
590
591
|
const lastChild = renderer.lastChild;
|
|
591
592
|
if (lastChild) {
|
|
592
593
|
/**
|
|
@@ -128,7 +128,7 @@ export default function BlockCard(props) {
|
|
|
128
128
|
}, cardProps, {
|
|
129
129
|
url: url,
|
|
130
130
|
onError: onError,
|
|
131
|
-
hideIconLoadingSkeleton:
|
|
131
|
+
hideIconLoadingSkeleton: true
|
|
132
132
|
}));
|
|
133
133
|
} else {
|
|
134
134
|
cardComponent = jsx(Card, _extends({
|
|
@@ -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.3.
|
|
57
|
+
var packageVersion = "120.3.6";
|
|
58
58
|
var setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
|
@@ -591,7 +591,8 @@ var RendererWrapper = /*#__PURE__*/React.memo(function (props) {
|
|
|
591
591
|
* Telepointer changes will also cause a childList mutation, so we manually ignore it.
|
|
592
592
|
* Telepointer changes are always a singular node-adds or node-removes.
|
|
593
593
|
*/
|
|
594
|
-
|
|
594
|
+
var isAdfStreamingEnabled = expValEqualsNoExposure('platform_editor_ai_iw_adf_streaming', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_ai_ct_sg_adf_streaming', 'isEnabled', true);
|
|
595
|
+
if (isAdfStreamingEnabled && mutation.type === 'childList' && !(mutation.addedNodes.length === 1 && ((_mutation$addedNodes$ = mutation.addedNodes[0]) === null || _mutation$addedNodes$ === void 0 ? void 0 : _mutation$addedNodes$.id) === TELEPOINTER_ID || mutation.removedNodes.length === 1 && ((_mutation$removedNode = mutation.removedNodes[0]) === null || _mutation$removedNode === void 0 ? void 0 : _mutation$removedNode.id) === TELEPOINTER_ID)) {
|
|
595
596
|
var _lastChild2 = _renderer.lastChild;
|
|
596
597
|
if (_lastChild2) {
|
|
597
598
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "120.3.
|
|
3
|
+
"version": "120.3.7",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
40
40
|
"@atlaskit/icon": "^27.9.0",
|
|
41
41
|
"@atlaskit/link": "^3.2.0",
|
|
42
|
-
"@atlaskit/link-datasource": "^4.
|
|
42
|
+
"@atlaskit/link-datasource": "^4.19.0",
|
|
43
43
|
"@atlaskit/media-card": "^79.4.0",
|
|
44
44
|
"@atlaskit/media-client": "^35.2.0",
|
|
45
45
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/status": "^3.0.0",
|
|
55
55
|
"@atlaskit/task-decision": "^19.2.0",
|
|
56
56
|
"@atlaskit/theme": "^19.0.0",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^9.24.0",
|
|
58
58
|
"@atlaskit/tokens": "^6.0.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.17.0",
|
|
72
72
|
"@atlaskit/link-provider": "^3.4.0",
|
|
73
73
|
"@atlaskit/media-core": "^37.0.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
@@ -247,9 +247,6 @@
|
|
|
247
247
|
"confluence_frontend_fix_view_page_slo": {
|
|
248
248
|
"type": "boolean"
|
|
249
249
|
},
|
|
250
|
-
"platform_fix_block_card_img_icon_vc": {
|
|
251
|
-
"type": "boolean"
|
|
252
|
-
},
|
|
253
250
|
"prompt_whiteboard_competitor_link_gate": {
|
|
254
251
|
"type": "boolean"
|
|
255
252
|
},
|