@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 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
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/actions.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/actions.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/consts.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/consts.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/custom-nodes.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/custom-nodes.d.ts"
14
14
  ]
@@ -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$media2, _this$media3;
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$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableDownloadButton,
541
- ssr: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.ssr
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$media4;
549
+ var _this$media5;
548
550
  return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
549
- ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
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 > ((0, _platformFeatureFlags.fg)('platform_editor_ol_padding_fix') ? 1 : 2)) {
21
+ if (itemCounterDigitsSize && itemCounterDigitsSize > 1) {
23
22
  extraProps.style = (0, _styles.getOrderedListInlineStyles)(itemCounterDigitsSize, 'object');
24
23
  }
25
24
  if (props.order !== undefined) {
@@ -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(_mediaCard.Card
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(_mediaCard.Card, {
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.1";
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$media2, _this$media3;
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$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableDownloadButton,
486
- ssr: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.ssr
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$media4;
491
+ var _this$media5;
491
492
  return {
492
493
  ...this.getProps(node),
493
- ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
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 > (fg('platform_editor_ol_padding_fix') ? 1 : 2)) {
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 { Card, CardLoading, CardError } from '@atlaskit/media-card';
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.1";
52
+ const packageVersion = "120.4.2";
53
53
  const setAsQueryContainerStyles = css({
54
54
  containerName: 'ak-renderer-wrapper',
55
55
  containerType: 'inline-size'
@@ -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$media2, _this$media3;
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$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableDownloadButton,
534
- ssr: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.ssr
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$media4;
542
+ var _this$media5;
541
543
  return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
542
- ssr: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.ssr
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 > (fg('platform_editor_ol_padding_fix') ? 1 : 2)) {
14
+ if (itemCounterDigitsSize && itemCounterDigitsSize > 1) {
16
15
  extraProps.style = getOrderedListInlineStyles(itemCounterDigitsSize, 'object');
17
16
  }
18
17
  if (props.order !== undefined) {
@@ -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 { Card, CardLoading, CardError } from '@atlaskit/media-card';
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.1";
57
+ var packageVersion = "120.4.2";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size'
@@ -10,4 +10,5 @@ export interface MediaOptions {
10
10
  featureFlags?: MediaFeatureFlags;
11
11
  ssr?: MediaSSR;
12
12
  allowCaptions?: boolean;
13
+ enableSyncMediaCard?: boolean;
13
14
  }
@@ -40,6 +40,7 @@ export interface MediaCardProps {
40
40
  shouldEnableDownloadButton?: boolean;
41
41
  ssr?: MediaSSR;
42
42
  dataAttributes?: Record<string, any>;
43
+ enableSyncMediaCard?: boolean;
43
44
  }
44
45
  interface State {
45
46
  contextIdentifierProvider?: ContextIdentifierProvider;
@@ -10,4 +10,5 @@ export interface MediaOptions {
10
10
  featureFlags?: MediaFeatureFlags;
11
11
  ssr?: MediaSSR;
12
12
  allowCaptions?: boolean;
13
+ enableSyncMediaCard?: boolean;
13
14
  }
@@ -40,6 +40,7 @@ export interface MediaCardProps {
40
40
  shouldEnableDownloadButton?: boolean;
41
41
  ssr?: MediaSSR;
42
42
  dataAttributes?: Record<string, any>;
43
+ enableSyncMediaCard?: boolean;
43
44
  }
44
45
  interface State {
45
46
  contextIdentifierProvider?: ContextIdentifierProvider;
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../../dist/types/entry-points/experimental-sync-custom-nodes/cards.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../../dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/cards.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../../dist/types/entry-points/experimental-sync-custom-nodes/media.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../../dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/media.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../../dist/types/entry-points/experimental-sync-custom-nodes/small-nodes.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../../dist/types-ts4.5/entry-points/experimental-sync-custom-nodes/small-nodes.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/messages.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/messages.d.ts"
14
14
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "120.4.2",
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.28.0",
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.23.0",
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": "^38.0.0",
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": {
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/render-document.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/render-document.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/renderer-context.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/renderer-context.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/serializer.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/serializer.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/text-serializer.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/text-serializer.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/use-feature-flags.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/use-feature-flags.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/utils.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/utils.d.ts"
14
14
  ]