@atlaskit/smart-card 32.7.6 → 32.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/extractors/flexible/actions/index.js +5 -7
  3. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
  4. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
  5. package/dist/cjs/utils/analytics/analytics.js +4 -6
  6. package/dist/cjs/utils/mocks.js +5 -7
  7. package/dist/cjs/view/BlockCard/views/styled.js +1 -1
  8. package/dist/cjs/view/Card/index.js +5 -7
  9. package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
  10. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  11. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
  12. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
  13. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
  14. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
  15. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +34 -34
  16. package/dist/cjs/view/FlexibleCard/components/utils.js +5 -5
  17. package/dist/cjs/view/HoverCard/styled.js +1 -1
  18. package/dist/cjs/view/InlineCard/ErroredView/index.js +8 -11
  19. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +10 -13
  20. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +7 -10
  21. package/dist/cjs/view/InlineCard/ResolvedView/index.js +5 -7
  22. package/dist/cjs/view/InlineCard/ResolvingView/index.js +5 -7
  23. package/dist/cjs/view/LinkUrl/index.js +1 -1
  24. package/dist/cjs/view/LinkView/index.js +5 -7
  25. package/dist/es2019/utils/analytics/analytics.js +1 -1
  26. package/dist/es2019/view/BlockCard/views/styled.js +1 -1
  27. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  28. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +3 -3
  29. package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
  30. package/dist/es2019/view/HoverCard/styled.js +1 -1
  31. package/dist/es2019/view/LinkUrl/index.js +1 -1
  32. package/dist/esm/extractors/flexible/actions/index.js +5 -7
  33. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
  34. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
  35. package/dist/esm/utils/analytics/analytics.js +4 -6
  36. package/dist/esm/utils/mocks.js +5 -7
  37. package/dist/esm/view/BlockCard/views/styled.js +1 -1
  38. package/dist/esm/view/Card/index.js +5 -7
  39. package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
  40. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  41. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
  42. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  43. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
  44. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
  45. package/dist/esm/view/FlexibleCard/components/elements/utils.js +34 -34
  46. package/dist/esm/view/FlexibleCard/components/utils.js +5 -5
  47. package/dist/esm/view/HoverCard/styled.js +1 -1
  48. package/dist/esm/view/InlineCard/ErroredView/index.js +8 -11
  49. package/dist/esm/view/InlineCard/ForbiddenView/index.js +10 -13
  50. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +7 -10
  51. package/dist/esm/view/InlineCard/ResolvedView/index.js +5 -7
  52. package/dist/esm/view/InlineCard/ResolvingView/index.js +5 -7
  53. package/dist/esm/view/LinkUrl/index.js +1 -1
  54. package/dist/esm/view/LinkView/index.js +5 -7
  55. package/package.json +1 -1
@@ -8,10 +8,9 @@ exports.InlineCardForbiddenView = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
14
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
15
  var _react = _interopRequireDefault(require("react"));
17
16
  var _reactIntlNext = require("react-intl-next");
@@ -27,7 +26,7 @@ var _IconAndTitleLayout = require("../IconAndTitleLayout");
27
26
  var _styled = require("../IconAndTitleLayout/styled");
28
27
  var _styled2 = require("../styled");
29
28
  var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
30
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
29
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
31
30
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
32
31
  var FallbackForbiddenIcon = /*#__PURE__*/_react.default.createElement(_Icon.AKIconWrapper, null, /*#__PURE__*/_react.default.createElement(_lockFilled.default, {
33
32
  label: "error",
@@ -36,8 +35,6 @@ var FallbackForbiddenIcon = /*#__PURE__*/_react.default.createElement(_Icon.AKIc
36
35
  testId: "forbidden-view-fallback-icon"
37
36
  }));
38
37
  var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/function (_React$Component) {
39
- (0, _inherits2.default)(InlineCardForbiddenView, _React$Component);
40
- var _super = _createSuper(InlineCardForbiddenView);
41
38
  function InlineCardForbiddenView() {
42
39
  var _this$props;
43
40
  var _this;
@@ -45,12 +42,12 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
45
42
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
46
43
  args[_key] = arguments[_key];
47
44
  }
48
- _this = _super.call.apply(_super, [this].concat(args));
49
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "frameRef", /*#__PURE__*/_react.default.createRef());
50
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
45
+ _this = _callSuper(this, InlineCardForbiddenView, [].concat(args));
46
+ (0, _defineProperty2.default)(_this, "frameRef", /*#__PURE__*/_react.default.createRef());
47
+ (0, _defineProperty2.default)(_this, "state", {
51
48
  hasRequestAccessContextMessage: !!((_this$props = _this.props) !== null && _this$props !== void 0 && (_this$props = _this$props.requestAccessContext) !== null && _this$props !== void 0 && _this$props.callToActionMessageKey)
52
49
  });
53
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleRetry", function (event) {
50
+ (0, _defineProperty2.default)(_this, "handleRetry", function (event) {
54
51
  var onAuthorise = _this.props.onAuthorise;
55
52
  event.preventDefault();
56
53
  event.stopPropagation();
@@ -61,7 +58,7 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
61
58
  (_this$props2 = _this.props) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.requestAccessContext) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.action) === null || _this$props2 === void 0 || _this$props2.promise();
62
59
  }
63
60
  });
64
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderForbiddenAccessMessage", function () {
61
+ (0, _defineProperty2.default)(_this, "renderForbiddenAccessMessage", function () {
65
62
  var _this$props3;
66
63
  if ((_this$props3 = _this.props) !== null && _this$props3 !== void 0 && (_this$props3 = _this$props3.requestAccessContext) !== null && _this$props3 !== void 0 && _this$props3.callToActionMessageKey) {
67
64
  var callToActionMessageKey = _this.props.requestAccessContext.callToActionMessageKey;
@@ -75,7 +72,7 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
75
72
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, formattedMessage);
76
73
  }));
77
74
  });
78
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderActionButton", function () {
75
+ (0, _defineProperty2.default)(_this, "renderActionButton", function () {
79
76
  var _this$props$requestAc;
80
77
  var onAuthorise = _this.props.onAuthorise;
81
78
  var ActionButton = (0, _withFrameStyleControl.default)(_button.default, _this.frameRef);
@@ -105,7 +102,8 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
105
102
  });
106
103
  return _this;
107
104
  }
108
- (0, _createClass2.default)(InlineCardForbiddenView, [{
105
+ (0, _inherits2.default)(InlineCardForbiddenView, _React$Component);
106
+ return (0, _createClass2.default)(InlineCardForbiddenView, [{
109
107
  key: "render",
110
108
  value: function render() {
111
109
  var _this$props4 = this.props,
@@ -136,5 +134,4 @@ var InlineCardForbiddenView = exports.InlineCardForbiddenView = /*#__PURE__*/fun
136
134
  return content;
137
135
  }
138
136
  }]);
139
- return InlineCardForbiddenView;
140
137
  }(_react.default.Component);
@@ -7,10 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.IconAndTitleLayout = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
14
  var _react = _interopRequireDefault(require("react"));
16
15
  var _reactRenderImage = _interopRequireDefault(require("react-render-image"));
@@ -18,19 +17,17 @@ var _link = _interopRequireDefault(require("@atlaskit/icon/core/migration/link")
18
17
  var _Icon = require("../Icon");
19
18
  var _styled = require("../styled");
20
19
  var _styled2 = require("./styled");
21
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
20
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
22
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
22
  var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
24
- (0, _inherits2.default)(IconAndTitleLayout, _React$Component);
25
- var _super = _createSuper(IconAndTitleLayout);
26
23
  function IconAndTitleLayout() {
27
24
  var _this;
28
25
  (0, _classCallCheck2.default)(this, IconAndTitleLayout);
29
26
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
30
27
  args[_key] = arguments[_key];
31
28
  }
32
- _this = _super.call.apply(_super, [this].concat(args));
33
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleClick", function (event) {
29
+ _this = _callSuper(this, IconAndTitleLayout, [].concat(args));
30
+ (0, _defineProperty2.default)(_this, "handleClick", function (event) {
34
31
  var onClick = _this.props.onClick;
35
32
  if (onClick) {
36
33
  event.preventDefault();
@@ -38,7 +35,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
38
35
  onClick(event);
39
36
  }
40
37
  });
41
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleKeyPress", function (event) {
38
+ (0, _defineProperty2.default)(_this, "handleKeyPress", function (event) {
42
39
  var onClick = _this.props.onClick;
43
40
  if (event.key !== ' ' && event.key !== 'Enter') {
44
41
  return;
@@ -51,7 +48,8 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
51
48
  });
52
49
  return _this;
53
50
  }
54
- (0, _createClass2.default)(IconAndTitleLayout, [{
51
+ (0, _inherits2.default)(IconAndTitleLayout, _React$Component);
52
+ return (0, _createClass2.default)(IconAndTitleLayout, [{
55
53
  key: "renderAtlaskitIcon",
56
54
  value: function renderAtlaskitIcon() {
57
55
  var _this$props = this.props,
@@ -158,7 +156,6 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
158
156
  );
159
157
  }
160
158
  }]);
161
- return IconAndTitleLayout;
162
159
  }(_react.default.Component);
163
160
  (0, _defineProperty2.default)(IconAndTitleLayout, "defaultProps", {
164
161
  rightSideSpacer: true
@@ -7,25 +7,24 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.InlineCardResolvedView = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
15
15
  var _HoverCard = require("../../HoverCard");
16
16
  var _Frame = require("../Frame");
17
17
  var _IconAndTitleLayout = require("../IconAndTitleLayout");
18
18
  var _styled = require("../IconAndTitleLayout/styled");
19
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
19
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
20
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21
21
  var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/function (_React$Component) {
22
- (0, _inherits2.default)(InlineCardResolvedView, _React$Component);
23
- var _super = _createSuper(InlineCardResolvedView);
24
22
  function InlineCardResolvedView() {
25
23
  (0, _classCallCheck2.default)(this, InlineCardResolvedView);
26
- return _super.apply(this, arguments);
24
+ return _callSuper(this, InlineCardResolvedView, arguments);
27
25
  }
28
- (0, _createClass2.default)(InlineCardResolvedView, [{
26
+ (0, _inherits2.default)(InlineCardResolvedView, _React$Component);
27
+ return (0, _createClass2.default)(InlineCardResolvedView, [{
29
28
  key: "renderLozenge",
30
29
  value: function renderLozenge() {
31
30
  var lozenge = this.props.lozenge;
@@ -87,5 +86,4 @@ var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/funct
87
86
  return inlineCardResolvedView;
88
87
  }
89
88
  }]);
90
- return InlineCardResolvedView;
91
89
  }(_react.default.Component);
@@ -7,25 +7,24 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.InlineCardResolvingView = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
15
15
  var _Frame = require("../Frame");
16
16
  var _IconAndTitleLayout = require("../IconAndTitleLayout");
17
17
  var _styled = require("../IconAndTitleLayout/styled");
18
18
  var _styled2 = require("./styled");
19
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
19
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
20
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21
21
  var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/function (_React$Component) {
22
- (0, _inherits2.default)(InlineCardResolvingView, _React$Component);
23
- var _super = _createSuper(InlineCardResolvingView);
24
22
  function InlineCardResolvingView() {
25
23
  (0, _classCallCheck2.default)(this, InlineCardResolvingView);
26
- return _super.apply(this, arguments);
24
+ return _callSuper(this, InlineCardResolvingView, arguments);
27
25
  }
28
- (0, _createClass2.default)(InlineCardResolvingView, [{
26
+ (0, _inherits2.default)(InlineCardResolvingView, _React$Component);
27
+ return (0, _createClass2.default)(InlineCardResolvingView, [{
29
28
  key: "render",
30
29
  value: function render() {
31
30
  var _this$props = this.props,
@@ -68,5 +67,4 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
68
67
  }
69
68
  }
70
69
  }]);
71
- return InlineCardResolvingView;
72
70
  }(_react.default.Component);
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
20
20
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
21
21
  var PACKAGE_DATA = {
22
22
  packageName: "@atlaskit/smart-card",
23
- packageVersion: "32.7.6",
23
+ packageVersion: "32.7.7",
24
24
  componentName: 'linkUrl'
25
25
  };
26
26
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -8,21 +8,20 @@ exports.CardLinkView = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _Frame = require("../InlineCard/Frame");
16
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
16
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
17
17
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
18
  var CardLinkView = exports.CardLinkView = /*#__PURE__*/function (_React$PureComponent) {
19
- (0, _inherits2.default)(CardLinkView, _React$PureComponent);
20
- var _super = _createSuper(CardLinkView);
21
19
  function CardLinkView() {
22
20
  (0, _classCallCheck2.default)(this, CardLinkView);
23
- return _super.apply(this, arguments);
21
+ return _callSuper(this, CardLinkView, arguments);
24
22
  }
25
- (0, _createClass2.default)(CardLinkView, [{
23
+ (0, _inherits2.default)(CardLinkView, _React$PureComponent);
24
+ return (0, _createClass2.default)(CardLinkView, [{
26
25
  key: "render",
27
26
  value: function render() {
28
27
  return /*#__PURE__*/_react.default.createElement(_Frame.Frame, (0, _extends2.default)({
@@ -30,5 +29,4 @@ var CardLinkView = exports.CardLinkView = /*#__PURE__*/function (_React$PureComp
30
29
  }, this.props), this.props.placeholder || this.props.link);
31
30
  }
32
31
  }]);
33
- return CardLinkView;
34
32
  }(_react.default.PureComponent);
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "32.7.6"
7
+ packageVersion: "32.7.7"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -23,7 +23,7 @@ export const titleBlockCss = css({
23
23
  gap: "var(--ds-space-100, 0.5em)",
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
25
25
  "[data-smart-element='Title']": {
26
- fontWeight: 600
26
+ fontWeight: "var(--ds-font-weight-semibold, 600)"
27
27
  }
28
28
  });
29
29
 
@@ -26,7 +26,7 @@ const getButtonStyle = (size, iconOnly) => {
26
26
  case SmartLinkSize.Small:
27
27
  return css({
28
28
  fontSize: '0.75rem',
29
- fontWeight: 500,
29
+ fontWeight: "var(--ds-font-weight-medium, 500)",
30
30
  lineHeight: '1rem',
31
31
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
32
32
  'button, button:hover, button:focus, button:active': [{
@@ -57,8 +57,8 @@ export const renderWithDi = (node, dependencies = [], options) => render(node, {
57
57
  }
58
58
  });
59
59
  export const createGenericComponent = (displayName, renderChildren = true, childrenParams) => {
60
- var _class;
61
- return _class = class extends Component {
60
+ var _Class;
61
+ return _Class = class extends Component {
62
62
  render() {
63
63
  if (renderChildren && typeof this.props.children === 'function') {
64
64
  if (childrenParams) {
@@ -71,5 +71,5 @@ export const createGenericComponent = (displayName, renderChildren = true, child
71
71
  }
72
72
  return null;
73
73
  }
74
- }, _defineProperty(_class, "displayName", displayName), _class;
74
+ }, _defineProperty(_Class, "displayName", displayName), _Class;
75
75
  };
@@ -98,7 +98,7 @@ export const getLinkSizeStyles = size => {
98
98
  case SmartLinkSize.XLarge:
99
99
  return css({
100
100
  fontSize: '1.25rem',
101
- fontWeight: 400,
101
+ fontWeight: "var(--ds-font-weight-regular, 400)",
102
102
  letterSpacing: '-0.008em',
103
103
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
104
104
  lineHeight: getLinkLineHeight(size)
@@ -107,7 +107,7 @@ export const getLinkSizeStyles = size => {
107
107
  case SmartLinkSize.Medium:
108
108
  return css({
109
109
  fontSize: '0.875rem',
110
- fontWeight: 400,
110
+ fontWeight: "var(--ds-font-weight-regular, 400)",
111
111
  letterSpacing: '-0.003em',
112
112
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
113
113
  lineHeight: getLinkLineHeight(size)
@@ -116,7 +116,7 @@ export const getLinkSizeStyles = size => {
116
116
  default:
117
117
  return css({
118
118
  fontSize: '0.75rem',
119
- fontWeight: 400,
119
+ fontWeight: "var(--ds-font-weight-regular, 400)",
120
120
  letterSpacing: '0em',
121
121
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
122
122
  lineHeight: getLinkLineHeight(size)
@@ -58,7 +58,7 @@ export const titleBlockCss = css`
58
58
  }
59
59
 
60
60
  [data-smart-element='Title'] {
61
- font-weight: 600;
61
+ font-weight: ${"var(--ds-font-weight-semibold, 600)"};
62
62
  }
63
63
  `;
64
64
  export const getTransitionStyles = snippetHeight => css({
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "32.7.6",
13
+ packageVersion: "32.7.7",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  const Anchor = withLinkClickedEvent('a');
@@ -11,7 +11,6 @@ import extractFollowAction from './extract-follow-action';
11
11
  import { extractPreviewAction, extractPreviewClientAction } from './extract-preview-action';
12
12
  import { extractViewRelatedLinksAction } from './extract-view-related-links-action';
13
13
  export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref) {
14
- var _objectSpread2;
15
14
  var actionOptions = _ref.actionOptions,
16
15
  aiSummaryConfig = _ref.aiSummaryConfig,
17
16
  appearance = _ref.appearance,
@@ -20,24 +19,24 @@ export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref
20
19
  origin = _ref.origin,
21
20
  response = _ref.response,
22
21
  url = _ref.url;
23
- var action = _objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, ActionName.CopyLinkAction, extractCopyLinkClientAction({
22
+ var action = _objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ActionName.CopyLinkAction, extractCopyLinkClientAction({
24
23
  actionOptions: actionOptions,
25
24
  appearance: appearance,
26
25
  id: id,
27
26
  response: response
28
- })), _defineProperty(_objectSpread2, ActionName.DownloadAction, extractDownloadClientAction({
27
+ })), ActionName.DownloadAction, extractDownloadClientAction({
29
28
  actionOptions: actionOptions,
30
29
  appearance: appearance,
31
30
  id: id,
32
31
  response: response
33
- })), _defineProperty(_objectSpread2, ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), _defineProperty(_objectSpread2, ActionName.PreviewAction, extractPreviewClientAction({
32
+ })), ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), ActionName.PreviewAction, extractPreviewClientAction({
34
33
  actionOptions: actionOptions,
35
34
  appearance: appearance,
36
35
  fireEvent: fireEvent,
37
36
  id: id,
38
37
  origin: origin,
39
38
  response: response
40
- })), _defineProperty(_objectSpread2, ActionName.AutomationAction, extractAutomationAction(response)), _defineProperty(_objectSpread2, InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), _objectSpread2), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
39
+ })), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
41
40
  return Object.values(action).some(function (value) {
42
41
  return Boolean(value);
43
42
  }) ? action : undefined;
@@ -48,9 +47,8 @@ export var extractFlexibleCardActions = function extractFlexibleCardActions(_ref
48
47
  * Replaced with extractFlexibleCardActions()
49
48
  */
50
49
  var extractActions = function extractActions(response, url, actionOptions, id, aiSummaryConfig) {
51
- var _objectSpread3;
52
50
  var data = response.data;
53
- var action = _objectSpread((_objectSpread3 = {}, _defineProperty(_objectSpread3, ActionName.CopyLinkAction, extractCopyLinkAction(data, actionOptions)), _defineProperty(_objectSpread3, ActionName.DownloadAction, extractDownloadAction(data, actionOptions)), _defineProperty(_objectSpread3, ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), _defineProperty(_objectSpread3, ActionName.PreviewAction, extractPreviewAction(response, actionOptions)), _defineProperty(_objectSpread3, ActionName.AutomationAction, extractAutomationAction(response)), _defineProperty(_objectSpread3, InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), _objectSpread3), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
51
+ var action = _objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ActionName.CopyLinkAction, extractCopyLinkAction(data, actionOptions)), ActionName.DownloadAction, extractDownloadAction(data, actionOptions)), ActionName.FollowAction, extractFollowAction(response, actionOptions, id)), ActionName.PreviewAction, extractPreviewAction(response, actionOptions)), ActionName.AutomationAction, extractAutomationAction(response)), InternalActionName.AISummaryAction, extractAISummaryAction(response, url, actionOptions, aiSummaryConfig)), fg('platform-smart-card-view-related-urls-action') ? _defineProperty({}, InternalActionName.ViewRelatedLinksAction, extractViewRelatedLinksAction(response)) : {});
54
52
  return Object.values(action).some(function (value) {
55
53
  return Boolean(value);
56
54
  }) ? action : undefined;
@@ -88,7 +88,7 @@ export var AISummaryService = /*#__PURE__*/function () {
88
88
  this.onSuccess = props.onSuccess;
89
89
  this.onError = props.onError;
90
90
  }
91
- _createClass(AISummaryService, [{
91
+ return _createClass(AISummaryService, [{
92
92
  key: "summariseUrl",
93
93
  value: function () {
94
94
  var _summariseUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
@@ -242,5 +242,4 @@ export var AISummaryService = /*#__PURE__*/function () {
242
242
  };
243
243
  }
244
244
  }]);
245
- return AISummaryService;
246
245
  }();
@@ -1,18 +1,17 @@
1
1
  import _createClass from "@babel/runtime/helpers/createClass";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
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";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
6
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
7
- 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)); }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  export var ChunkProcessingError = /*#__PURE__*/function (_Error) {
10
- _inherits(ChunkProcessingError, _Error);
11
- var _super = _createSuper(ChunkProcessingError);
12
10
  function ChunkProcessingError(error) {
13
11
  _classCallCheck(this, ChunkProcessingError);
14
- return _super.call(this, error);
12
+ return _callSuper(this, ChunkProcessingError, [error]);
15
13
  }
14
+ _inherits(ChunkProcessingError, _Error);
16
15
  return _createClass(ChunkProcessingError);
17
16
  }( /*#__PURE__*/_wrapNativeSuper(Error));
18
17
  export var errorMessages = ['NETWORK_ERROR', 'NO_ANSWER', 'RATE_LIMIT', 'NO_AGENT', 'PLUGIN_ERRORED', 'OPENAI_RATE_LIMIT_USER_ABUSE', 'ACCEPTABLE_USE_VIOLATIONS', 'AI_DISABLED', 'UNEXPECTED', 'HIPAA_CONTENT_DETECTED', 'EXCEEDING_CONTEXT_LENGTH_ERROR'];
@@ -1,7 +1,6 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
- var _SmartLinkActionTypeT, _SmartLinkActionTypeU;
5
4
  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; }
6
5
  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; }
7
6
  import { SmartLinkActionType } from '@atlaskit/linking-types';
@@ -10,7 +9,7 @@ export var ANALYTICS_CHANNEL = 'media';
10
9
  export var context = {
11
10
  componentName: 'smart-cards',
12
11
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "32.7.6"
12
+ packageVersion: "32.7.7"
14
13
  };
15
14
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
16
15
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -22,8 +21,8 @@ export var TrackQuickActionFailureReason = /*#__PURE__*/function (TrackQuickActi
22
21
  TrackQuickActionFailureReason["UnknownError"] = "UnknownError";
23
22
  return TrackQuickActionFailureReason;
24
23
  }({});
25
- export var SmartLinkActionTypeTrackingEventMapper = (_SmartLinkActionTypeT = {}, _defineProperty(_SmartLinkActionTypeT, SmartLinkActionType.FollowEntityAction, 'Follow'), _defineProperty(_SmartLinkActionTypeT, SmartLinkActionType.StatusUpdateAction, 'StatusUpdate'), _defineProperty(_SmartLinkActionTypeT, SmartLinkActionType.UnfollowEntityAction, 'Unfollow'), _SmartLinkActionTypeT);
26
- export var SmartLinkActionTypeUiEventMapper = (_SmartLinkActionTypeU = {}, _defineProperty(_SmartLinkActionTypeU, SmartLinkActionType.FollowEntityAction, 'smartLinkFollowButton'), _defineProperty(_SmartLinkActionTypeU, SmartLinkActionType.UnfollowEntityAction, 'smartLinkFollowButton'), _SmartLinkActionTypeU);
24
+ export var SmartLinkActionTypeTrackingEventMapper = _defineProperty(_defineProperty(_defineProperty({}, SmartLinkActionType.FollowEntityAction, 'Follow'), SmartLinkActionType.StatusUpdateAction, 'StatusUpdate'), SmartLinkActionType.UnfollowEntityAction, 'Unfollow');
25
+ export var SmartLinkActionTypeUiEventMapper = _defineProperty(_defineProperty({}, SmartLinkActionType.FollowEntityAction, 'smartLinkFollowButton'), SmartLinkActionType.UnfollowEntityAction, 'smartLinkFollowButton');
27
26
  var uiActionSubjectIds = {
28
27
  DownloadAction: 'downloadDocument',
29
28
  PreviewAction: 'invokePreviewScreen',
@@ -34,7 +33,7 @@ export var SmartLinkEvents = /*#__PURE__*/function () {
34
33
  function SmartLinkEvents() {
35
34
  _classCallCheck(this, SmartLinkEvents);
36
35
  }
37
- _createClass(SmartLinkEvents, [{
36
+ return _createClass(SmartLinkEvents, [{
38
37
  key: "insertSmartLink",
39
38
  value: function insertSmartLink(url, type, createAnalyticsEvent) {
40
39
  fireSmartLinkEvent({
@@ -50,7 +49,6 @@ export var SmartLinkEvents = /*#__PURE__*/function () {
50
49
  }, createAnalyticsEvent);
51
50
  }
52
51
  }]);
53
- return SmartLinkEvents;
54
52
  }();
55
53
  export var fireSmartLinkEvent = function fireSmartLinkEvent(payload, createAnalyticsEvent) {
56
54
  if (createAnalyticsEvent) {
@@ -1,12 +1,12 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  import _regeneratorRuntime from "@babel/runtime/regenerator";
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); }; }
9
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  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; }
12
12
  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; }
@@ -201,13 +201,12 @@ export var fakeResponse = function fakeResponse() {
201
201
  };
202
202
  export var fakeFactory = function fakeFactory(implementation, implementationPost, implementationPrefetch, implementationAri) {
203
203
  return /*#__PURE__*/function (_CardClient) {
204
- _inherits(CustomClient, _CardClient);
205
- var _super = _createSuper(CustomClient);
206
204
  function CustomClient() {
207
205
  _classCallCheck(this, CustomClient);
208
- return _super.apply(this, arguments);
206
+ return _callSuper(this, CustomClient, arguments);
209
207
  }
210
- _createClass(CustomClient, [{
208
+ _inherits(CustomClient, _CardClient);
209
+ return _createClass(CustomClient, [{
211
210
  key: "fetchData",
212
211
  value: // @ts-ignore
213
212
  function () {
@@ -297,7 +296,6 @@ export var fakeFactory = function fakeFactory(implementation, implementationPost
297
296
  return fetchDataAris;
298
297
  }()
299
298
  }]);
300
- return CustomClient;
301
299
  }(CardClient);
302
300
  };
303
301
  export var waitFor = function waitFor() {
@@ -23,7 +23,7 @@ export var titleBlockCss = css({
23
23
  gap: "var(--ds-space-100, 0.5em)",
24
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
25
25
  "[data-smart-element='Title']": {
26
- fontWeight: 600
26
+ fontWeight: "var(--ds-font-weight-semibold, 600)"
27
27
  }
28
28
  });
29
29
 
@@ -1,9 +1,9 @@
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 from 'react';
9
9
  import { injectIntl, IntlProvider } from 'react-intl-next';
@@ -11,13 +11,12 @@ import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-n
11
11
  import { context } from '../../utils/analytics';
12
12
  import { CardWithURLRenderer } from '../CardWithUrl/loader';
13
13
  var PlainCard = /*#__PURE__*/function (_React$PureComponent) {
14
- _inherits(PlainCard, _React$PureComponent);
15
- var _super = _createSuper(PlainCard);
16
14
  function PlainCard() {
17
15
  _classCallCheck(this, PlainCard);
18
- return _super.apply(this, arguments);
16
+ return _callSuper(this, PlainCard, arguments);
19
17
  }
20
- _createClass(PlainCard, [{
18
+ _inherits(PlainCard, _React$PureComponent);
19
+ return _createClass(PlainCard, [{
21
20
  key: "render",
22
21
  value: function render() {
23
22
  var content = /*#__PURE__*/React.createElement(CardWithURLRenderer, this.props);
@@ -26,7 +25,6 @@ var PlainCard = /*#__PURE__*/function (_React$PureComponent) {
26
25
  }, content);
27
26
  }
28
27
  }]);
29
- return PlainCard;
30
28
  }(React.PureComponent);
31
29
  export var Card = withAnalyticsContext(context)(withAnalyticsEvents()(injectIntl(PlainCard, {
32
30
  enforceContext: false