@atlaskit/renderer 112.7.0 → 112.7.2

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/actions/index.js +1 -2
  3. package/dist/cjs/react/index.js +1 -2
  4. package/dist/cjs/react/marks/confluence-inline-comment.js +5 -7
  5. package/dist/cjs/react/nodes/TableStickyScrollbar.js +1 -2
  6. package/dist/cjs/react/nodes/decisionList.js +5 -7
  7. package/dist/cjs/react/nodes/emoji.js +6 -9
  8. package/dist/cjs/react/nodes/fallback.js +7 -10
  9. package/dist/cjs/react/nodes/heading-anchor.js +11 -14
  10. package/dist/cjs/react/nodes/media/index.js +8 -11
  11. package/dist/cjs/react/nodes/mediaGroup.js +9 -12
  12. package/dist/cjs/react/nodes/table/sticky.js +7 -9
  13. package/dist/cjs/react/nodes/table.js +27 -32
  14. package/dist/cjs/react/nodes/tableRow.js +8 -11
  15. package/dist/cjs/react/nodes/taskItem.js +6 -9
  16. package/dist/cjs/react/nodes/taskList.js +5 -7
  17. package/dist/cjs/react/utils/element-selection.js +1 -2
  18. package/dist/cjs/text/index.js +1 -2
  19. package/dist/cjs/ui/Expand.js +1 -1
  20. package/dist/cjs/ui/MediaCard.js +9 -12
  21. package/dist/cjs/ui/Renderer/ErrorBoundary.js +6 -9
  22. package/dist/cjs/ui/Renderer/index.js +12 -15
  23. package/dist/cjs/ui/Renderer/style.js +2 -2
  24. package/dist/cjs/ui/Renderer/truncated-wrapper.js +5 -7
  25. package/dist/cjs/ui/SmartCardStorage.js +5 -7
  26. package/dist/cjs/ui/annotations/context.js +8 -11
  27. package/dist/cjs/ui/annotations/draft/dom.js +1 -2
  28. package/dist/es2019/ui/Expand.js +1 -1
  29. package/dist/es2019/ui/Renderer/index.js +1 -1
  30. package/dist/es2019/ui/Renderer/style.js +2 -2
  31. package/dist/esm/actions/index.js +1 -2
  32. package/dist/esm/react/index.js +1 -2
  33. package/dist/esm/react/marks/confluence-inline-comment.js +5 -7
  34. package/dist/esm/react/nodes/TableStickyScrollbar.js +1 -2
  35. package/dist/esm/react/nodes/decisionList.js +5 -7
  36. package/dist/esm/react/nodes/emoji.js +6 -9
  37. package/dist/esm/react/nodes/fallback.js +7 -10
  38. package/dist/esm/react/nodes/heading-anchor.js +11 -14
  39. package/dist/esm/react/nodes/media/index.js +8 -11
  40. package/dist/esm/react/nodes/mediaGroup.js +9 -12
  41. package/dist/esm/react/nodes/table/sticky.js +7 -9
  42. package/dist/esm/react/nodes/table.js +27 -32
  43. package/dist/esm/react/nodes/tableRow.js +8 -11
  44. package/dist/esm/react/nodes/taskItem.js +6 -9
  45. package/dist/esm/react/nodes/taskList.js +5 -7
  46. package/dist/esm/react/utils/element-selection.js +1 -2
  47. package/dist/esm/text/index.js +1 -2
  48. package/dist/esm/ui/Expand.js +1 -1
  49. package/dist/esm/ui/MediaCard.js +9 -12
  50. package/dist/esm/ui/Renderer/ErrorBoundary.js +6 -9
  51. package/dist/esm/ui/Renderer/index.js +12 -15
  52. package/dist/esm/ui/Renderer/style.js +2 -2
  53. package/dist/esm/ui/Renderer/truncated-wrapper.js +5 -7
  54. package/dist/esm/ui/SmartCardStorage.js +5 -7
  55. package/dist/esm/ui/annotations/context.js +8 -11
  56. package/dist/esm/ui/annotations/draft/dom.js +1 -2
  57. package/package.json +4 -4
@@ -1,9 +1,8 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
7
  import _extends from "@babel/runtime/helpers/extends";
9
8
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
@@ -14,7 +13,7 @@ var _excluded = ["marks", "mediaSingleElement", "isDrafting"],
14
13
  var _templateObject, _templateObject2;
15
14
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
15
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
16
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
18
17
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
18
  /**
20
19
  * @jsxRuntime classic
@@ -281,13 +280,11 @@ var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
281
280
  }, rest));
282
281
  };
283
282
  var Media = /*#__PURE__*/function (_PureComponent) {
284
- _inherits(Media, _PureComponent);
285
- var _super = _createSuper(Media);
286
283
  function Media(props) {
287
284
  var _this;
288
285
  _classCallCheck(this, Media);
289
- _this = _super.call(this, props);
290
- _defineProperty(_assertThisInitialized(_this), "renderCard", function () {
286
+ _this = _callSuper(this, Media, [props]);
287
+ _defineProperty(_this, "renderCard", function () {
291
288
  var providers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
292
289
  var contextIdentifierProvider = providers.contextIdentifierProvider;
293
290
  var _this$props = _this.props,
@@ -359,7 +356,7 @@ var Media = /*#__PURE__*/function (_PureComponent) {
359
356
  ssr: ssr
360
357
  }))))));
361
358
  });
362
- _defineProperty(_assertThisInitialized(_this), "handleMediaLinkClick", function (event) {
359
+ _defineProperty(_this, "handleMediaLinkClick", function (event) {
363
360
  var _this$props2 = _this.props,
364
361
  fireAnalyticsEvent = _this$props2.fireAnalyticsEvent,
365
362
  isLinkMark = _this$props2.isLinkMark,
@@ -384,10 +381,11 @@ var Media = /*#__PURE__*/function (_PureComponent) {
384
381
  handler(event, _linkMark && linkHref);
385
382
  }
386
383
  });
387
- _this.handleMediaLinkClickFn = _this.handleMediaLinkClick.bind(_assertThisInitialized(_this));
384
+ _this.handleMediaLinkClickFn = _this.handleMediaLinkClick.bind(_this);
388
385
  return _this;
389
386
  }
390
- _createClass(Media, [{
387
+ _inherits(Media, _PureComponent);
388
+ return _createClass(Media, [{
391
389
  key: "render",
392
390
  value: function render() {
393
391
  var providers = this.props.providers;
@@ -401,7 +399,6 @@ var Media = /*#__PURE__*/function (_PureComponent) {
401
399
  });
402
400
  }
403
401
  }]);
404
- return Media;
405
402
  }(PureComponent);
406
403
  var MediaWithDraftAnnotation = function MediaWithDraftAnnotation(props) {
407
404
  var draftPosition = React.useContext(AnnotationsDraftContext);
@@ -1,38 +1,35 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
7
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
8
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
9
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
11
  import React, { PureComponent } from 'react';
13
12
  import { defaultImageCardDimensions } from '@atlaskit/media-card';
14
13
  import { FilmstripView } from '@atlaskit/media-filmstrip';
15
14
  var MediaGroup = /*#__PURE__*/function (_PureComponent) {
16
- _inherits(MediaGroup, _PureComponent);
17
- var _super = _createSuper(MediaGroup);
18
15
  function MediaGroup() {
19
16
  var _this;
20
17
  _classCallCheck(this, MediaGroup);
21
18
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
22
19
  args[_key] = arguments[_key];
23
20
  }
24
- _this = _super.call.apply(_super, [this].concat(args));
25
- _defineProperty(_assertThisInitialized(_this), "state", {
21
+ _this = _callSuper(this, MediaGroup, [].concat(args));
22
+ _defineProperty(_this, "state", {
26
23
  animate: false,
27
24
  offset: 0
28
25
  });
29
- _defineProperty(_assertThisInitialized(_this), "handleSize", function (_ref) {
26
+ _defineProperty(_this, "handleSize", function (_ref) {
30
27
  var offset = _ref.offset;
31
28
  return _this.setState({
32
29
  offset: offset
33
30
  });
34
31
  });
35
- _defineProperty(_assertThisInitialized(_this), "handleScroll", function (_ref2) {
32
+ _defineProperty(_this, "handleScroll", function (_ref2) {
36
33
  var animate = _ref2.animate,
37
34
  offset = _ref2.offset;
38
35
  return _this.setState({
@@ -40,7 +37,7 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
40
37
  offset: offset
41
38
  });
42
39
  });
43
- _defineProperty(_assertThisInitialized(_this), "onMediaClick", function (cardClickHandler, child, surroundingItems) {
40
+ _defineProperty(_this, "onMediaClick", function (cardClickHandler, child, surroundingItems) {
44
41
  return function (event, analyticsEvent) {
45
42
  var surroundings = {
46
43
  collectionName: child.props.collection,
@@ -51,7 +48,8 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
51
48
  });
52
49
  return _this;
53
50
  }
54
- _createClass(MediaGroup, [{
51
+ _inherits(MediaGroup, _PureComponent);
52
+ return _createClass(MediaGroup, [{
55
53
  key: "render",
56
54
  value: function render() {
57
55
  var numChildren = React.Children.count(this.props.children);
@@ -174,6 +172,5 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
174
172
  }
175
173
  }
176
174
  }]);
177
- return MediaGroup;
178
175
  }(PureComponent);
179
176
  export { MediaGroup as default };
@@ -31,7 +31,6 @@ var modeSpecficStyles = {
31
31
 
32
32
  // TODO: Quality ticket: https://product-fabric.atlassian.net/browse/DSP-4123
33
33
  var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, allowTableResizing) {
34
- var _css;
35
34
  var stickyHeaderZIndex;
36
35
  if (allowTableResizing) {
37
36
  stickyHeaderZIndex = 13;
@@ -40,27 +39,27 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, a
40
39
  }
41
40
 
42
41
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
43
- return css(typeof top === 'number' && "top: ".concat(top, "px;"), (_css = {
42
+ return css(typeof top === 'number' && "top: ".concat(top, "px;"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
44
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
45
44
  width: "".concat(width, "px"),
46
45
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
47
46
  zIndex: stickyHeaderZIndex
48
- }, _defineProperty(_css, "& .".concat(TableSharedCssClassName.TABLE_CONTAINER, ", & .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
47
+ }, "& .".concat(TableSharedCssClassName.TABLE_CONTAINER, ", & .").concat(TableSharedCssClassName.TABLE_STICKY_WRAPPER, " > table"), {
49
48
  marginTop: 0,
50
49
  marginBottom: 0,
51
50
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
52
51
  tr: {
53
52
  background: "var(--ds-surface, white)"
54
53
  }
55
- }), _defineProperty(_css, "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, white)")), _defineProperty(_css, "background", "var(--ds-surface-overlay, white)"), _defineProperty(_css, "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, ".concat(N40A, ")"))), _defineProperty(_css, "div[data-expanded='false'] &", {
54
+ }), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, white)")), "background", "var(--ds-surface-overlay, white)"), "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, ".concat(N40A, ")"))), "div[data-expanded='false'] &", {
56
55
  display: 'none'
57
- }), _defineProperty(_css, "& .".concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.right-shadow::after, & .").concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.left-shadow::before"), {
56
+ }), "& .".concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.right-shadow::after, & .").concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.left-shadow::before"), {
58
57
  top: '0px',
59
58
  height: '100%'
60
- }), _defineProperty(_css, "&.fixed-table-div-custom-table-resizing[mode='stick']", {
59
+ }), "&.fixed-table-div-custom-table-resizing[mode='stick']", {
61
60
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
62
61
  zIndex: stickyHeaderZIndex
63
- }), _css));
62
+ }));
64
63
  };
65
64
  var FixedTableDiv = function FixedTableDiv(props) {
66
65
  var top = props.top,
@@ -189,7 +188,7 @@ export var OverflowParent = /*#__PURE__*/function () {
189
188
  this.ref = ref;
190
189
  this.ref = ref;
191
190
  }
192
- _createClass(OverflowParent, [{
191
+ return _createClass(OverflowParent, [{
193
192
  key: "isElement",
194
193
  get: function get() {
195
194
  return this.ref instanceof HTMLElement;
@@ -234,5 +233,4 @@ export var OverflowParent = /*#__PURE__*/function () {
234
233
  return new OverflowParent(findHorizontalOverflowScrollParent(el, defaultScrollRootId) || window);
235
234
  }
236
235
  }]);
237
- return OverflowParent;
238
236
  }();
@@ -2,15 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
+ import _inherits from "@babel/runtime/helpers/inherits";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
9
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
11
10
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
11
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
14
  import React from 'react';
16
15
  import { TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common/styles';
@@ -118,29 +117,27 @@ var tableCanBeSticky = function tableCanBeSticky(node, children) {
118
117
  return isHeaderRowEnabled(children) && node && node.firstChild && !hasRowspan(node.firstChild);
119
118
  };
120
119
  export var TableContainer = /*#__PURE__*/function (_React$Component) {
121
- _inherits(TableContainer, _React$Component);
122
- var _super = _createSuper(TableContainer);
123
120
  function TableContainer() {
124
121
  var _this;
125
122
  _classCallCheck(this, TableContainer);
126
123
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
127
124
  args[_key] = arguments[_key];
128
125
  }
129
- _this = _super.call.apply(_super, [this].concat(args));
130
- _defineProperty(_assertThisInitialized(_this), "state", {
126
+ _this = _callSuper(this, TableContainer, [].concat(args));
127
+ _defineProperty(_this, "state", {
131
128
  stickyMode: 'none',
132
129
  wrapperWidth: 0,
133
130
  headerRowHeight: 0
134
131
  });
135
- _defineProperty(_assertThisInitialized(_this), "tableRef", /*#__PURE__*/React.createRef());
136
- _defineProperty(_assertThisInitialized(_this), "stickyHeaderRef", /*#__PURE__*/React.createRef());
137
- _defineProperty(_assertThisInitialized(_this), "stickyScrollbarRef", /*#__PURE__*/React.createRef());
132
+ _defineProperty(_this, "tableRef", /*#__PURE__*/React.createRef());
133
+ _defineProperty(_this, "stickyHeaderRef", /*#__PURE__*/React.createRef());
134
+ _defineProperty(_this, "stickyScrollbarRef", /*#__PURE__*/React.createRef());
138
135
  // used for sync scroll + copying wrapper width to sticky header
139
- _defineProperty(_assertThisInitialized(_this), "stickyWrapperRef", /*#__PURE__*/React.createRef());
140
- _defineProperty(_assertThisInitialized(_this), "wrapperRef", /*#__PURE__*/React.createRef());
141
- _defineProperty(_assertThisInitialized(_this), "overflowParent", null);
142
- _defineProperty(_assertThisInitialized(_this), "resizeObserver", null);
143
- _defineProperty(_assertThisInitialized(_this), "applyResizerChange", function (entries) {
136
+ _defineProperty(_this, "stickyWrapperRef", /*#__PURE__*/React.createRef());
137
+ _defineProperty(_this, "wrapperRef", /*#__PURE__*/React.createRef());
138
+ _defineProperty(_this, "overflowParent", null);
139
+ _defineProperty(_this, "resizeObserver", null);
140
+ _defineProperty(_this, "applyResizerChange", function (entries) {
144
141
  var wrapperWidth = _this.state.wrapperWidth;
145
142
  var headerRowHeight = _this.state.headerRowHeight;
146
143
  var _iterator = _createForOfIteratorHelper(entries),
@@ -166,7 +163,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
166
163
  });
167
164
  }
168
165
  });
169
- _defineProperty(_assertThisInitialized(_this), "componentWillUnmount", function () {
166
+ _defineProperty(_this, "componentWillUnmount", function () {
170
167
  if (_this.overflowParent) {
171
168
  _this.overflowParent.removeEventListener('scroll', _this.onScroll);
172
169
  }
@@ -180,12 +177,12 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
180
177
  _this.stickyScrollbar.dispose();
181
178
  }
182
179
  });
183
- _defineProperty(_assertThisInitialized(_this), "getScrollTop", function () {
180
+ _defineProperty(_this, "getScrollTop", function () {
184
181
  var stickyHeaders = _this.props.stickyHeaders;
185
182
  var offsetTop = stickyHeaders && stickyHeaders.offsetTop || 0;
186
183
  return (_this.overflowParent ? _this.overflowParent.top : 0) + offsetTop;
187
184
  });
188
- _defineProperty(_assertThisInitialized(_this), "updateSticky", function () {
185
+ _defineProperty(_this, "updateSticky", function () {
189
186
  var tableElem = _this.tableRef.current;
190
187
  var refElem = _this.stickyHeaderRef.current;
191
188
  if (!tableElem || !refElem) {
@@ -209,12 +206,12 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
209
206
  }
210
207
  _this.nextFrame = undefined;
211
208
  });
212
- _defineProperty(_assertThisInitialized(_this), "onScroll", function () {
209
+ _defineProperty(_this, "onScroll", function () {
213
210
  if (!_this.nextFrame) {
214
211
  _this.nextFrame = requestAnimationFrame(_this.updateSticky);
215
212
  }
216
213
  });
217
- _defineProperty(_assertThisInitialized(_this), "onWrapperScrolled", function () {
214
+ _defineProperty(_this, "onWrapperScrolled", function () {
218
215
  if (!_this.wrapperRef.current || !_this.stickyWrapperRef.current) {
219
216
  return;
220
217
  }
@@ -223,7 +220,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
223
220
  _this.stickyScrollbarRef.current.scrollLeft = _this.wrapperRef.current.scrollLeft;
224
221
  }
225
222
  });
226
- _defineProperty(_assertThisInitialized(_this), "grabFirstRowRef", function (children) {
223
+ _defineProperty(_this, "grabFirstRowRef", function (children) {
227
224
  return React.Children.map(children || false, function (child, idx) {
228
225
  if (idx === 0 && /*#__PURE__*/React.isValidElement(child)) {
229
226
  return /*#__PURE__*/React.cloneElement(child, {
@@ -235,7 +232,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
235
232
  });
236
233
  return _this;
237
234
  }
238
- _createClass(TableContainer, [{
235
+ _inherits(TableContainer, _React$Component);
236
+ return _createClass(TableContainer, [{
239
237
  key: "componentDidMount",
240
238
  value: function componentDidMount() {
241
239
  this.resizeObserver = new ResizeObserver(this.applyResizerChange);
@@ -505,23 +503,20 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
505
503
  })));
506
504
  }
507
505
  }]);
508
- return TableContainer;
509
506
  }(React.Component);
510
507
  export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
511
- _inherits(TableProcessor, _React$Component2);
512
- var _super2 = _createSuper(TableProcessor);
513
508
  function TableProcessor() {
514
509
  var _this2;
515
510
  _classCallCheck(this, TableProcessor);
516
511
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
517
512
  args[_key2] = arguments[_key2];
518
513
  }
519
- _this2 = _super2.call.apply(_super2, [this].concat(args));
520
- _defineProperty(_assertThisInitialized(_this2), "state", {
514
+ _this2 = _callSuper(this, TableProcessor, [].concat(args));
515
+ _defineProperty(_this2, "state", {
521
516
  tableOrderStatus: undefined
522
517
  });
523
518
  // adds sortable + re-orders children
524
- _defineProperty(_assertThisInitialized(_this2), "addSortableColumn", function (childrenArray) {
519
+ _defineProperty(_this2, "addSortableColumn", function (childrenArray) {
525
520
  var _this2$props = _this2.props,
526
521
  tableNode = _this2$props.tableNode,
527
522
  allowColumnSorting = _this2$props.allowColumnSorting,
@@ -532,7 +527,7 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
532
527
  }
533
528
  return childrenArray;
534
529
  });
535
- _defineProperty(_assertThisInitialized(_this2), "changeSortOrder", function (columnIndex, sortOrder) {
530
+ _defineProperty(_this2, "changeSortOrder", function (columnIndex, sortOrder) {
536
531
  _this2.setState({
537
532
  tableOrderStatus: {
538
533
  columnIndex: columnIndex,
@@ -540,7 +535,7 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
540
535
  }
541
536
  });
542
537
  });
543
- _defineProperty(_assertThisInitialized(_this2), "addNumberColumnIndexes", function (rows) {
538
+ _defineProperty(_this2, "addNumberColumnIndexes", function (rows) {
544
539
  var isNumberColumnEnabled = _this2.props.isNumberColumnEnabled;
545
540
  var headerRowEnabled = isHeaderRowEnabled(rows);
546
541
  return React.Children.map(rows, function (row, index) {
@@ -552,7 +547,8 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
552
547
  });
553
548
  return _this2;
554
549
  }
555
- _createClass(TableProcessor, [{
550
+ _inherits(TableProcessor, _React$Component2);
551
+ return _createClass(TableProcessor, [{
556
552
  key: "render",
557
553
  value: function render() {
558
554
  var children = this.props.children;
@@ -566,7 +562,6 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
566
562
  return /*#__PURE__*/React.createElement(TableContainer, this.props, orderedChildren);
567
563
  }
568
564
  }]);
569
- return TableProcessor;
570
565
  }(React.Component);
571
566
  var TableWithShadows = overflowShadow(TableProcessor, {
572
567
  overflowSelector: ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER),
@@ -1,30 +1,27 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
9
  import React from 'react';
11
10
  import { compose } from '@atlaskit/editor-common/utils';
12
11
  import { SortOrder } from '@atlaskit/editor-common/types';
13
12
  import { RendererCssClassName } from '../../consts';
14
13
  var TableRow = /*#__PURE__*/function (_React$Component) {
15
- _inherits(TableRow, _React$Component);
16
- var _super = _createSuper(TableRow);
17
14
  function TableRow() {
18
15
  var _this;
19
16
  _classCallCheck(this, TableRow);
20
17
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21
18
  args[_key] = arguments[_key];
22
19
  }
23
- _this = _super.call.apply(_super, [this].concat(args));
24
- _defineProperty(_assertThisInitialized(_this), "state", {
20
+ _this = _callSuper(this, TableRow, [].concat(args));
21
+ _defineProperty(_this, "state", {
25
22
  colGroupWidths: []
26
23
  });
27
- _defineProperty(_assertThisInitialized(_this), "addSortableColumn", function (childrenArray) {
24
+ _defineProperty(_this, "addSortableColumn", function (childrenArray) {
28
25
  var _this$props = _this.props,
29
26
  allowColumnSorting = _this$props.allowColumnSorting,
30
27
  rowIndex = _this$props.index;
@@ -48,7 +45,7 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
48
45
  }
49
46
  return childrenArray;
50
47
  });
51
- _defineProperty(_assertThisInitialized(_this), "addColGroupWidth", function (childrenArray) {
48
+ _defineProperty(_this, "addColGroupWidth", function (childrenArray) {
52
49
  if (_this.state.colGroupWidths) {
53
50
  childrenArray = childrenArray.map(function (child, index) {
54
51
  if ( /*#__PURE__*/React.isValidElement(child)) {
@@ -62,7 +59,8 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
62
59
  });
63
60
  return _this;
64
61
  }
65
- _createClass(TableRow, [{
62
+ _inherits(TableRow, _React$Component);
63
+ return _createClass(TableRow, [{
66
64
  key: "render",
67
65
  value: function render() {
68
66
  var _this$props2 = this.props,
@@ -79,6 +77,5 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
79
77
  }, this.props.index), compose(this.addSortableColumn, this.addColGroupWidth)(childrenArray));
80
78
  }
81
79
  }]);
82
- return TableRow;
83
80
  }(React.Component);
84
81
  export { TableRow as default };
@@ -1,12 +1,11 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
8
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
10
  import React, { PureComponent } from 'react';
12
11
  import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
@@ -14,13 +13,11 @@ import TaskItemWithProviders from './task-item-with-providers';
14
13
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
15
14
  import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
16
15
  var TaskItem = /*#__PURE__*/function (_PureComponent) {
17
- _inherits(TaskItem, _PureComponent);
18
- var _super = _createSuper(TaskItem);
19
16
  function TaskItem(props) {
20
17
  var _this;
21
18
  _classCallCheck(this, TaskItem);
22
- _this = _super.call(this, props);
23
- _defineProperty(_assertThisInitialized(_this), "renderWithProvider", function (providers) {
19
+ _this = _callSuper(this, TaskItem, [props]);
20
+ _defineProperty(_this, "renderWithProvider", function (providers) {
24
21
  var taskDecisionProvider = providers.taskDecisionProvider,
25
22
  contextIdentifierProvider = providers.contextIdentifierProvider;
26
23
  var _this$props = _this.props,
@@ -59,7 +56,8 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
59
56
  _this.providerFactory = props.providers || new ProviderFactory();
60
57
  return _this;
61
58
  }
62
- _createClass(TaskItem, [{
59
+ _inherits(TaskItem, _PureComponent);
60
+ return _createClass(TaskItem, [{
63
61
  key: "componentWillUnmount",
64
62
  value: function componentWillUnmount() {
65
63
  if (!this.props.providers) {
@@ -78,6 +76,5 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
78
76
  });
79
77
  }
80
78
  }]);
81
- return TaskItem;
82
79
  }(PureComponent);
83
80
  export { TaskItem as default };
@@ -1,20 +1,19 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React, { PureComponent, Children } from 'react';
9
9
  import { TaskList as AkTaskList } from '@atlaskit/task-decision';
10
10
  var TaskList = /*#__PURE__*/function (_PureComponent) {
11
- _inherits(TaskList, _PureComponent);
12
- var _super = _createSuper(TaskList);
13
11
  function TaskList() {
14
12
  _classCallCheck(this, TaskList);
15
- return _super.apply(this, arguments);
13
+ return _callSuper(this, TaskList, arguments);
16
14
  }
17
- _createClass(TaskList, [{
15
+ _inherits(TaskList, _PureComponent);
16
+ return _createClass(TaskList, [{
18
17
  key: "render",
19
18
  value: function render() {
20
19
  var _this$props = this.props,
@@ -28,6 +27,5 @@ var TaskList = /*#__PURE__*/function (_PureComponent) {
28
27
  }, children);
29
28
  }
30
29
  }]);
31
- return TaskList;
32
30
  }(PureComponent);
33
31
  export { TaskList as default };
@@ -8,7 +8,7 @@ export var ElementSelection = /*#__PURE__*/function () {
8
8
  this.range = selection.getRangeAt(0);
9
9
  }
10
10
  }
11
- _createClass(ElementSelection, [{
11
+ return _createClass(ElementSelection, [{
12
12
  key: "eq",
13
13
  value: function eq(selection) {
14
14
  if (!selection) {
@@ -47,5 +47,4 @@ export var ElementSelection = /*#__PURE__*/function () {
47
47
  return new ElementSelection(win.getSelection());
48
48
  }
49
49
  }]);
50
- return ElementSelection;
51
50
  }();
@@ -8,7 +8,7 @@ var TextSerializer = /*#__PURE__*/function () {
8
8
  this.schema = schema;
9
9
  this.schema = schema;
10
10
  }
11
- _createClass(TextSerializer, [{
11
+ return _createClass(TextSerializer, [{
12
12
  key: "serializeFragment",
13
13
  value: function serializeFragment(fragment) {
14
14
  var _this = this;
@@ -25,6 +25,5 @@ var TextSerializer = /*#__PURE__*/function () {
25
25
  return new TextSerializer(schema);
26
26
  }
27
27
  }]);
28
- return TextSerializer;
29
28
  }();
30
29
  export { TextSerializer as default };
@@ -30,7 +30,7 @@ var titleStyles = css({
30
30
  fontSize: relativeFontSizeToBase16(fontSize()),
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
32
32
  lineHeight: akEditorLineHeight,
33
- fontWeight: 'normal',
33
+ fontWeight: "var(--ds-font-weight-regular, 400)",
34
34
  display: 'flex',
35
35
  flex: 1,
36
36
  margin: 0,
@@ -2,15 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
+ import _inherits from "@babel/runtime/helpers/inherits";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
9
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
10
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
11
  import _regeneratorRuntime from "@babel/runtime/regenerator";
13
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
14
  import React, { Component, useContext } from 'react';
16
15
  import { filter } from '@atlaskit/adf-utils/traverse';
@@ -48,17 +47,15 @@ export var getListOfIdentifiersFromDoc = function getListOfIdentifiersFromDoc(do
48
47
  }, []);
49
48
  };
50
49
  export var MediaCardView = /*#__PURE__*/function (_Component) {
51
- _inherits(MediaCardView, _Component);
52
- var _super = _createSuper(MediaCardView);
53
50
  function MediaCardView() {
54
51
  var _this;
55
52
  _classCallCheck(this, MediaCardView);
56
53
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
57
54
  args[_key] = arguments[_key];
58
55
  }
59
- _this = _super.call.apply(_super, [this].concat(args));
60
- _defineProperty(_assertThisInitialized(_this), "state", {});
61
- _defineProperty(_assertThisInitialized(_this), "saveFileState", /*#__PURE__*/function () {
56
+ _this = _callSuper(this, MediaCardView, [].concat(args));
57
+ _defineProperty(_this, "state", {});
58
+ _defineProperty(_this, "saveFileState", /*#__PURE__*/function () {
62
59
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(id) {
63
60
  var _this$props, collectionName, mediaClient, options, fileState;
64
61
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -96,7 +93,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
96
93
  return _ref.apply(this, arguments);
97
94
  };
98
95
  }());
99
- _defineProperty(_assertThisInitialized(_this), "renderLoadingCard", function () {
96
+ _defineProperty(_this, "renderLoadingCard", function () {
100
97
  var cardDimensions = _this.props.cardDimensions;
101
98
  return /*#__PURE__*/React.createElement(CardLoading, {
102
99
  dimensions: cardDimensions,
@@ -109,7 +106,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
109
106
  * This is due to consumers normally process this onClick call by opening media viewer and
110
107
  * we don't want that to happened described above text.
111
108
  */
112
- _defineProperty(_assertThisInitialized(_this), "getOnCardClickCallback", function (isInlinePlayer) {
109
+ _defineProperty(_this, "getOnCardClickCallback", function (isInlinePlayer) {
113
110
  var eventHandlers = _this.props.eventHandlers;
114
111
  if (eventHandlers && eventHandlers.media && eventHandlers.media.onClick) {
115
112
  return function (result, analyticsEvent) {
@@ -124,7 +121,8 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
124
121
  });
125
122
  return _this;
126
123
  }
127
- _createClass(MediaCardView, [{
124
+ _inherits(MediaCardView, _Component);
125
+ return _createClass(MediaCardView, [{
128
126
  key: "componentDidMount",
129
127
  value: function () {
130
128
  var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
@@ -337,7 +335,6 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
337
335
  }));
338
336
  }
339
337
  }]);
340
- return MediaCardView;
341
338
  }(Component);
342
339
  // Needed for copy & paste
343
340
  export var getClipboardAttrs = function getClipboardAttrs(_ref2) {