@atlaskit/renderer 120.4.2 → 120.4.3
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 +11 -0
- package/actions/package.json +1 -1
- package/consts/package.json +1 -1
- package/custom-nodes/package.json +1 -1
- package/dist/cjs/react/index.js +9 -7
- package/dist/cjs/react/nodes/orderedList.js +1 -2
- package/dist/cjs/ui/MediaCard.js +9 -4
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/index.js +8 -7
- package/dist/es2019/react/nodes/orderedList.js +1 -2
- package/dist/es2019/ui/MediaCard.js +8 -3
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/index.js +9 -7
- package/dist/esm/react/nodes/orderedList.js +1 -2
- package/dist/esm/ui/MediaCard.js +8 -3
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/types/mediaOptions.d.ts +1 -0
- package/dist/types/ui/MediaCard.d.ts +1 -0
- package/dist/types-ts4.5/types/mediaOptions.d.ts +1 -0
- package/dist/types-ts4.5/ui/MediaCard.d.ts +1 -0
- package/experimental-sync-custom-nodes/cards/package.json +1 -1
- package/experimental-sync-custom-nodes/media/package.json +1 -1
- package/experimental-sync-custom-nodes/small-nodes/package.json +1 -1
- package/messages/package.json +1 -1
- package/package.json +7 -7
- package/render-document/package.json +1 -1
- package/renderer-context/package.json +1 -1
- package/serializer/package.json +1 -1
- package/text-serializer/package.json +1 -1
- package/use-feature-flags/package.json +1 -1
- package/utils/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 120.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0198dcd9d80fe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0198dcd9d80fe) -
|
|
8
|
+
Added the enableSyncMediaCard media toggle, that loads the MediaCard in sync without
|
|
9
|
+
react-loadable.
|
|
10
|
+
- [`3fff102f55da9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3fff102f55da9) -
|
|
11
|
+
Cleanup FG platform_editor_ol_padding_fix
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 120.4.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/actions/package.json
CHANGED
package/consts/package.json
CHANGED
package/dist/cjs/react/index.js
CHANGED
|
@@ -460,7 +460,8 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
460
460
|
key: "getMediaProps",
|
|
461
461
|
value: function getMediaProps(node) {
|
|
462
462
|
var _this6 = this,
|
|
463
|
-
_this$media
|
|
463
|
+
_this$media,
|
|
464
|
+
_this$media2;
|
|
464
465
|
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
465
466
|
var _node$type$schema$mar = node.type.schema.marks,
|
|
466
467
|
annotation = _node$type$schema$mar.annotation,
|
|
@@ -491,7 +492,8 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
491
492
|
shouldOpenMediaViewer: this.shouldOpenMediaViewer,
|
|
492
493
|
ssr: (_this$media = this.media) === null || _this$media === void 0 ? void 0 : _this$media.ssr,
|
|
493
494
|
// surroundTextNodesWithTextWrapper checks inlineComment.allowDraftMode
|
|
494
|
-
allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper
|
|
495
|
+
allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper,
|
|
496
|
+
enableSyncMediaCard: (_this$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableSyncMediaCard
|
|
495
497
|
});
|
|
496
498
|
}
|
|
497
499
|
}, {
|
|
@@ -532,21 +534,21 @@ var ReactSerializer = exports.default = /*#__PURE__*/function () {
|
|
|
532
534
|
}, {
|
|
533
535
|
key: "getMediaGroupProps",
|
|
534
536
|
value: function getMediaGroupProps(node) {
|
|
535
|
-
var _this$
|
|
537
|
+
var _this$media3, _this$media4;
|
|
536
538
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
537
539
|
shouldOpenMediaViewer: this.shouldOpenMediaViewer,
|
|
538
540
|
allowAltTextOnImages: this.allowAltTextOnImages,
|
|
539
541
|
featureFlags: this.media && this.media.featureFlags,
|
|
540
|
-
enableDownloadButton: (_this$
|
|
541
|
-
ssr: (_this$
|
|
542
|
+
enableDownloadButton: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.enableDownloadButton,
|
|
543
|
+
ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
|
|
542
544
|
});
|
|
543
545
|
}
|
|
544
546
|
}, {
|
|
545
547
|
key: "getMediaInlineProps",
|
|
546
548
|
value: function getMediaInlineProps(node) {
|
|
547
|
-
var _this$
|
|
549
|
+
var _this$media5;
|
|
548
550
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
549
|
-
ssr: (_this$
|
|
551
|
+
ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
|
|
550
552
|
});
|
|
551
553
|
}
|
|
552
554
|
}, {
|
|
@@ -11,7 +11,6 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
11
11
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
13
13
|
var _lists = require("../utils/lists");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
function OrderedList(props) {
|
|
16
15
|
var _props$content;
|
|
17
16
|
var extraProps = {};
|
|
@@ -19,7 +18,7 @@ function OrderedList(props) {
|
|
|
19
18
|
order: props.order,
|
|
20
19
|
itemsCount: props === null || props === void 0 || (_props$content = props.content) === null || _props$content === void 0 ? void 0 : _props$content.length
|
|
21
20
|
});
|
|
22
|
-
if (itemCounterDigitsSize && itemCounterDigitsSize >
|
|
21
|
+
if (itemCounterDigitsSize && itemCounterDigitsSize > 1) {
|
|
23
22
|
extraProps.style = (0, _styles.getOrderedListInlineStyles)(itemCounterDigitsSize, 'object');
|
|
24
23
|
}
|
|
25
24
|
if (props.order !== undefined) {
|
package/dist/cjs/ui/MediaCard.js
CHANGED
|
@@ -17,6 +17,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
19
|
var _traverse = require("@atlaskit/adf-utils/traverse");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _mediaCard = require("@atlaskit/media-card");
|
|
21
22
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
22
23
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -216,7 +217,8 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
216
217
|
featureFlags = _this$props4.featureFlags,
|
|
217
218
|
ssr = _this$props4.ssr,
|
|
218
219
|
mediaClient = _this$props4.mediaClient,
|
|
219
|
-
dataAttributes = _this$props4.dataAttributes
|
|
220
|
+
dataAttributes = _this$props4.dataAttributes,
|
|
221
|
+
enableSyncMediaCard = _this$props4.enableSyncMediaCard;
|
|
220
222
|
if (imageStatus === 'loading' || !url) {
|
|
221
223
|
return this.renderLoadingCard();
|
|
222
224
|
}
|
|
@@ -228,13 +230,14 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
228
230
|
|
|
229
231
|
// we need this statement for the mandatory mediaClientConfig below
|
|
230
232
|
var mediaClientConfig = mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig;
|
|
233
|
+
var Card = enableSyncMediaCard && (0, _platformFeatureFlags.fg)('jfp-magma-ssr-iv-editor-media') ? _mediaCard.CardSync : _mediaCard.Card;
|
|
231
234
|
return (
|
|
232
235
|
/*#__PURE__*/
|
|
233
236
|
// Ignored via go/ees005
|
|
234
237
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
235
238
|
_react.default.createElement("div", (0, _extends2.default)({}, dataAttributes, {
|
|
236
239
|
"data-node-type": "media"
|
|
237
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
240
|
+
}), /*#__PURE__*/_react.default.createElement(Card
|
|
238
241
|
// TODO: MPT-315 - clean up after we move mediaClientConfig into FileIdentifier
|
|
239
242
|
// context is not really used when the type is external and we want to render the component asap
|
|
240
243
|
// Ignored via go/ees005
|
|
@@ -277,7 +280,8 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
277
280
|
shouldEnableDownloadButton = _this$props5.shouldEnableDownloadButton,
|
|
278
281
|
ssr = _this$props5.ssr,
|
|
279
282
|
mediaClient = _this$props5.mediaClient,
|
|
280
|
-
dataAttributes = _this$props5.dataAttributes
|
|
283
|
+
dataAttributes = _this$props5.dataAttributes,
|
|
284
|
+
enableSyncMediaCard = _this$props5.enableSyncMediaCard;
|
|
281
285
|
var isMobile = false;
|
|
282
286
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
283
287
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -305,6 +309,7 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
305
309
|
collectionName: collection,
|
|
306
310
|
occurrenceKey: occurrenceKey
|
|
307
311
|
};
|
|
312
|
+
var Card = enableSyncMediaCard && (0, _platformFeatureFlags.fg)('jfp-magma-ssr-iv-editor-media') ? _mediaCard.CardSync : _mediaCard.Card;
|
|
308
313
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, getClipboardAttrs({
|
|
309
314
|
id: id,
|
|
310
315
|
alt: alt,
|
|
@@ -312,7 +317,7 @@ var MediaCardView = exports.MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
312
317
|
contextIdentifierProvider: contextIdentifierProvider,
|
|
313
318
|
originalDimensions: originalDimensions,
|
|
314
319
|
fileState: fileState
|
|
315
|
-
}), dataAttributes), /*#__PURE__*/_react.default.createElement(
|
|
320
|
+
}), dataAttributes), /*#__PURE__*/_react.default.createElement(Card, {
|
|
316
321
|
identifier: identifier,
|
|
317
322
|
alt: alt,
|
|
318
323
|
contextId: contextId,
|
|
@@ -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.4.
|
|
66
|
+
var packageVersion = "120.4.2";
|
|
67
67
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
|
@@ -419,7 +419,7 @@ export default class ReactSerializer {
|
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
getMediaProps(node, path = []) {
|
|
422
|
-
var _this$media;
|
|
422
|
+
var _this$media, _this$media2;
|
|
423
423
|
const {
|
|
424
424
|
marks: {
|
|
425
425
|
annotation,
|
|
@@ -445,7 +445,8 @@ export default class ReactSerializer {
|
|
|
445
445
|
shouldOpenMediaViewer: this.shouldOpenMediaViewer,
|
|
446
446
|
ssr: (_this$media = this.media) === null || _this$media === void 0 ? void 0 : _this$media.ssr,
|
|
447
447
|
// surroundTextNodesWithTextWrapper checks inlineComment.allowDraftMode
|
|
448
|
-
allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper
|
|
448
|
+
allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper,
|
|
449
|
+
enableSyncMediaCard: (_this$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableSyncMediaCard
|
|
449
450
|
};
|
|
450
451
|
}
|
|
451
452
|
getExtensionProps(node, path = []) {
|
|
@@ -476,21 +477,21 @@ export default class ReactSerializer {
|
|
|
476
477
|
};
|
|
477
478
|
}
|
|
478
479
|
getMediaGroupProps(node) {
|
|
479
|
-
var _this$
|
|
480
|
+
var _this$media3, _this$media4;
|
|
480
481
|
return {
|
|
481
482
|
...this.getProps(node),
|
|
482
483
|
shouldOpenMediaViewer: this.shouldOpenMediaViewer,
|
|
483
484
|
allowAltTextOnImages: this.allowAltTextOnImages,
|
|
484
485
|
featureFlags: this.media && this.media.featureFlags,
|
|
485
|
-
enableDownloadButton: (_this$
|
|
486
|
-
ssr: (_this$
|
|
486
|
+
enableDownloadButton: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.enableDownloadButton,
|
|
487
|
+
ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
|
|
487
488
|
};
|
|
488
489
|
}
|
|
489
490
|
getMediaInlineProps(node) {
|
|
490
|
-
var _this$
|
|
491
|
+
var _this$media5;
|
|
491
492
|
return {
|
|
492
493
|
...this.getProps(node),
|
|
493
|
-
ssr: (_this$
|
|
494
|
+
ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
|
|
494
495
|
};
|
|
495
496
|
}
|
|
496
497
|
getTaskItemProps(node, path = []) {
|
|
@@ -4,7 +4,6 @@ import { orderedListSelector } from '@atlaskit/adf-schema';
|
|
|
4
4
|
import { getOrderedListInlineStyles } from '@atlaskit/editor-common/styles';
|
|
5
5
|
import { getItemCounterDigitsSize, resolveOrder } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { getListIndentLevel } from '../utils/lists';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
export default function OrderedList(props) {
|
|
9
8
|
var _props$content;
|
|
10
9
|
const extraProps = {};
|
|
@@ -12,7 +11,7 @@ export default function OrderedList(props) {
|
|
|
12
11
|
order: props.order,
|
|
13
12
|
itemsCount: props === null || props === void 0 ? void 0 : (_props$content = props.content) === null || _props$content === void 0 ? void 0 : _props$content.length
|
|
14
13
|
});
|
|
15
|
-
if (itemCounterDigitsSize && itemCounterDigitsSize >
|
|
14
|
+
if (itemCounterDigitsSize && itemCounterDigitsSize > 1) {
|
|
16
15
|
extraProps.style = getOrderedListInlineStyles(itemCounterDigitsSize, 'object');
|
|
17
16
|
}
|
|
18
17
|
if (props.order !== undefined) {
|
|
@@ -2,7 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { Component, useContext } from 'react';
|
|
4
4
|
import { filter } from '@atlaskit/adf-utils/traverse';
|
|
5
|
-
import {
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { Card as CardAsync, CardSync, CardLoading, CardError } from '@atlaskit/media-card';
|
|
6
7
|
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
7
8
|
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
8
9
|
export const mediaIdentifierMap = new Map();
|
|
@@ -151,7 +152,8 @@ export class MediaCardView extends Component {
|
|
|
151
152
|
featureFlags,
|
|
152
153
|
ssr,
|
|
153
154
|
mediaClient,
|
|
154
|
-
dataAttributes
|
|
155
|
+
dataAttributes,
|
|
156
|
+
enableSyncMediaCard
|
|
155
157
|
} = this.props;
|
|
156
158
|
if (imageStatus === 'loading' || !url) {
|
|
157
159
|
return this.renderLoadingCard();
|
|
@@ -164,6 +166,7 @@ export class MediaCardView extends Component {
|
|
|
164
166
|
|
|
165
167
|
// we need this statement for the mandatory mediaClientConfig below
|
|
166
168
|
const mediaClientConfig = mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig;
|
|
169
|
+
const Card = enableSyncMediaCard && fg('jfp-magma-ssr-iv-editor-media') ? CardSync : CardAsync;
|
|
167
170
|
return (
|
|
168
171
|
/*#__PURE__*/
|
|
169
172
|
// Ignored via go/ees005
|
|
@@ -212,7 +215,8 @@ export class MediaCardView extends Component {
|
|
|
212
215
|
shouldEnableDownloadButton,
|
|
213
216
|
ssr,
|
|
214
217
|
mediaClient,
|
|
215
|
-
dataAttributes
|
|
218
|
+
dataAttributes,
|
|
219
|
+
enableSyncMediaCard
|
|
216
220
|
} = this.props;
|
|
217
221
|
const isMobile = false;
|
|
218
222
|
const shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
@@ -241,6 +245,7 @@ export class MediaCardView extends Component {
|
|
|
241
245
|
collectionName: collection,
|
|
242
246
|
occurrenceKey
|
|
243
247
|
};
|
|
248
|
+
const Card = enableSyncMediaCard && fg('jfp-magma-ssr-iv-editor-media') ? CardSync : CardAsync;
|
|
244
249
|
return /*#__PURE__*/React.createElement("div", _extends({}, getClipboardAttrs({
|
|
245
250
|
id,
|
|
246
251
|
alt,
|
|
@@ -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.4.
|
|
52
|
+
const packageVersion = "120.4.2";
|
|
53
53
|
const setAsQueryContainerStyles = css({
|
|
54
54
|
containerName: 'ak-renderer-wrapper',
|
|
55
55
|
containerType: 'inline-size'
|
package/dist/esm/react/index.js
CHANGED
|
@@ -453,7 +453,8 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
453
453
|
key: "getMediaProps",
|
|
454
454
|
value: function getMediaProps(node) {
|
|
455
455
|
var _this6 = this,
|
|
456
|
-
_this$media
|
|
456
|
+
_this$media,
|
|
457
|
+
_this$media2;
|
|
457
458
|
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
458
459
|
var _node$type$schema$mar = node.type.schema.marks,
|
|
459
460
|
annotation = _node$type$schema$mar.annotation,
|
|
@@ -484,7 +485,8 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
484
485
|
shouldOpenMediaViewer: this.shouldOpenMediaViewer,
|
|
485
486
|
ssr: (_this$media = this.media) === null || _this$media === void 0 ? void 0 : _this$media.ssr,
|
|
486
487
|
// surroundTextNodesWithTextWrapper checks inlineComment.allowDraftMode
|
|
487
|
-
allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper
|
|
488
|
+
allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper,
|
|
489
|
+
enableSyncMediaCard: (_this$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableSyncMediaCard
|
|
488
490
|
});
|
|
489
491
|
}
|
|
490
492
|
}, {
|
|
@@ -525,21 +527,21 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
525
527
|
}, {
|
|
526
528
|
key: "getMediaGroupProps",
|
|
527
529
|
value: function getMediaGroupProps(node) {
|
|
528
|
-
var _this$
|
|
530
|
+
var _this$media3, _this$media4;
|
|
529
531
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
530
532
|
shouldOpenMediaViewer: this.shouldOpenMediaViewer,
|
|
531
533
|
allowAltTextOnImages: this.allowAltTextOnImages,
|
|
532
534
|
featureFlags: this.media && this.media.featureFlags,
|
|
533
|
-
enableDownloadButton: (_this$
|
|
534
|
-
ssr: (_this$
|
|
535
|
+
enableDownloadButton: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.enableDownloadButton,
|
|
536
|
+
ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
|
|
535
537
|
});
|
|
536
538
|
}
|
|
537
539
|
}, {
|
|
538
540
|
key: "getMediaInlineProps",
|
|
539
541
|
value: function getMediaInlineProps(node) {
|
|
540
|
-
var _this$
|
|
542
|
+
var _this$media5;
|
|
541
543
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
542
|
-
ssr: (_this$
|
|
544
|
+
ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
|
|
543
545
|
});
|
|
544
546
|
}
|
|
545
547
|
}, {
|
|
@@ -4,7 +4,6 @@ import { orderedListSelector } from '@atlaskit/adf-schema';
|
|
|
4
4
|
import { getOrderedListInlineStyles } from '@atlaskit/editor-common/styles';
|
|
5
5
|
import { getItemCounterDigitsSize, resolveOrder } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { getListIndentLevel } from '../utils/lists';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
export default function OrderedList(props) {
|
|
9
8
|
var _props$content;
|
|
10
9
|
var extraProps = {};
|
|
@@ -12,7 +11,7 @@ export default function OrderedList(props) {
|
|
|
12
11
|
order: props.order,
|
|
13
12
|
itemsCount: props === null || props === void 0 || (_props$content = props.content) === null || _props$content === void 0 ? void 0 : _props$content.length
|
|
14
13
|
});
|
|
15
|
-
if (itemCounterDigitsSize && itemCounterDigitsSize >
|
|
14
|
+
if (itemCounterDigitsSize && itemCounterDigitsSize > 1) {
|
|
16
15
|
extraProps.style = getOrderedListInlineStyles(itemCounterDigitsSize, 'object');
|
|
17
16
|
}
|
|
18
17
|
if (props.order !== undefined) {
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -13,7 +13,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
import React, { Component, useContext } from 'react';
|
|
15
15
|
import { filter } from '@atlaskit/adf-utils/traverse';
|
|
16
|
-
import {
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { Card as CardAsync, CardSync, CardLoading, CardError } from '@atlaskit/media-card';
|
|
17
18
|
import { MediaClientContext } from '@atlaskit/media-client-react';
|
|
18
19
|
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
19
20
|
export var mediaIdentifierMap = new Map();
|
|
@@ -207,7 +208,8 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
207
208
|
featureFlags = _this$props4.featureFlags,
|
|
208
209
|
ssr = _this$props4.ssr,
|
|
209
210
|
mediaClient = _this$props4.mediaClient,
|
|
210
|
-
dataAttributes = _this$props4.dataAttributes
|
|
211
|
+
dataAttributes = _this$props4.dataAttributes,
|
|
212
|
+
enableSyncMediaCard = _this$props4.enableSyncMediaCard;
|
|
211
213
|
if (imageStatus === 'loading' || !url) {
|
|
212
214
|
return this.renderLoadingCard();
|
|
213
215
|
}
|
|
@@ -219,6 +221,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
219
221
|
|
|
220
222
|
// we need this statement for the mandatory mediaClientConfig below
|
|
221
223
|
var mediaClientConfig = mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig;
|
|
224
|
+
var Card = enableSyncMediaCard && fg('jfp-magma-ssr-iv-editor-media') ? CardSync : CardAsync;
|
|
222
225
|
return (
|
|
223
226
|
/*#__PURE__*/
|
|
224
227
|
// Ignored via go/ees005
|
|
@@ -268,7 +271,8 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
268
271
|
shouldEnableDownloadButton = _this$props5.shouldEnableDownloadButton,
|
|
269
272
|
ssr = _this$props5.ssr,
|
|
270
273
|
mediaClient = _this$props5.mediaClient,
|
|
271
|
-
dataAttributes = _this$props5.dataAttributes
|
|
274
|
+
dataAttributes = _this$props5.dataAttributes,
|
|
275
|
+
enableSyncMediaCard = _this$props5.enableSyncMediaCard;
|
|
272
276
|
var isMobile = false;
|
|
273
277
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
274
278
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -296,6 +300,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
296
300
|
collectionName: collection,
|
|
297
301
|
occurrenceKey: occurrenceKey
|
|
298
302
|
};
|
|
303
|
+
var Card = enableSyncMediaCard && fg('jfp-magma-ssr-iv-editor-media') ? CardSync : CardAsync;
|
|
299
304
|
return /*#__PURE__*/React.createElement("div", _extends({}, getClipboardAttrs({
|
|
300
305
|
id: id,
|
|
301
306
|
alt: alt,
|
|
@@ -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.4.
|
|
57
|
+
var packageVersion = "120.4.2";
|
|
58
58
|
var setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size'
|
package/messages/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "120.4.
|
|
3
|
+
"version": "120.4.3",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -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.29.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.24.0",
|
|
72
72
|
"@atlaskit/link-provider": "^3.4.0",
|
|
73
73
|
"@atlaskit/media-core": "^37.0.0",
|
|
74
74
|
"react": "^18.2.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/linking-common": "^9.2.0",
|
|
86
86
|
"@atlaskit/media-core": "^37.0.0",
|
|
87
87
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
88
|
-
"@atlaskit/media-test-helpers": "^
|
|
88
|
+
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
89
89
|
"@atlaskit/mention": "^24.2.0",
|
|
90
90
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
91
91
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-d1445f2f74.patch",
|
|
@@ -261,9 +261,6 @@
|
|
|
261
261
|
"platform_custom_number_column": {
|
|
262
262
|
"type": "boolean"
|
|
263
263
|
},
|
|
264
|
-
"platform_editor_ol_padding_fix": {
|
|
265
|
-
"type": "boolean"
|
|
266
|
-
},
|
|
267
264
|
"platform_editor_avatar_group_margin_fix": {
|
|
268
265
|
"type": "boolean"
|
|
269
266
|
},
|
|
@@ -272,6 +269,9 @@
|
|
|
272
269
|
},
|
|
273
270
|
"platform_editor_numbered_column_in_include": {
|
|
274
271
|
"type": "boolean"
|
|
272
|
+
},
|
|
273
|
+
"jfp-magma-ssr-iv-editor-media": {
|
|
274
|
+
"type": "boolean"
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
"af:exports": {
|
package/serializer/package.json
CHANGED