@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
@@ -1,25 +1,22 @@
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 { embedHeaderHeight } from './components/styled';
12
11
  export var EmbedResizeMessageListener = /*#__PURE__*/function (_React$Component) {
13
- _inherits(EmbedResizeMessageListener, _React$Component);
14
- var _super = _createSuper(EmbedResizeMessageListener);
15
12
  function EmbedResizeMessageListener() {
16
13
  var _this;
17
14
  _classCallCheck(this, EmbedResizeMessageListener);
18
15
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19
16
  args[_key] = arguments[_key];
20
17
  }
21
- _this = _super.call.apply(_super, [this].concat(args));
22
- _defineProperty(_assertThisInitialized(_this), "messageCallback", function (event) {
18
+ _this = _callSuper(this, EmbedResizeMessageListener, [].concat(args));
19
+ _defineProperty(_this, "messageCallback", function (event) {
23
20
  var embedIframeRef = _this.props.embedIframeRef;
24
21
  var isFromExpectedIframe = embedIframeRef.current && event.source === embedIframeRef.current.contentWindow;
25
22
  var isStringData = typeof event.data === 'string';
@@ -34,14 +31,15 @@ export var EmbedResizeMessageListener = /*#__PURE__*/function (_React$Component)
34
31
  } catch (e) {}
35
32
  }
36
33
  });
37
- _defineProperty(_assertThisInitialized(_this), "onEmbedHeightChange", function (data) {
34
+ _defineProperty(_this, "onEmbedHeightChange", function (data) {
38
35
  var onHeightUpdate = _this.props.onHeightUpdate;
39
36
  var height = data.height + embedHeaderHeight;
40
37
  onHeightUpdate(height);
41
38
  });
42
39
  return _this;
43
40
  }
44
- _createClass(EmbedResizeMessageListener, [{
41
+ _inherits(EmbedResizeMessageListener, _React$Component);
42
+ return _createClass(EmbedResizeMessageListener, [{
45
43
  key: "componentDidMount",
46
44
  value: function componentDidMount() {
47
45
  window.addEventListener('message', this.messageCallback);
@@ -57,5 +55,4 @@ export var EmbedResizeMessageListener = /*#__PURE__*/function (_React$Component)
57
55
  return this.props.children;
58
56
  }
59
57
  }]);
60
- return EmbedResizeMessageListener;
61
58
  }(React.Component);
@@ -26,7 +26,7 @@ var getButtonStyle = function 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': [{
@@ -1,12 +1,12 @@
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";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
6
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
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
  import _regeneratorRuntime from "@babel/runtime/regenerator";
12
12
  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; }
@@ -89,17 +89,16 @@ export var renderWithDi = function renderWithDi(node) {
89
89
  }));
90
90
  };
91
91
  export var createGenericComponent = function createGenericComponent(displayName) {
92
- var _class;
92
+ var _Class;
93
93
  var renderChildren = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
94
94
  var childrenParams = arguments.length > 2 ? arguments[2] : undefined;
95
- return _class = /*#__PURE__*/function (_Component) {
96
- _inherits(_class, _Component);
97
- var _super = _createSuper(_class);
98
- function _class() {
99
- _classCallCheck(this, _class);
100
- return _super.apply(this, arguments);
95
+ return _Class = /*#__PURE__*/function (_Component) {
96
+ function _Class() {
97
+ _classCallCheck(this, _Class);
98
+ return _callSuper(this, _Class, arguments);
101
99
  }
102
- _createClass(_class, [{
100
+ _inherits(_Class, _Component);
101
+ return _createClass(_Class, [{
103
102
  key: "render",
104
103
  value: function render() {
105
104
  if (renderChildren && typeof this.props.children === 'function') {
@@ -114,6 +113,5 @@ export var createGenericComponent = function createGenericComponent(displayName)
114
113
  return null;
115
114
  }
116
115
  }]);
117
- return _class;
118
- }(Component), _defineProperty(_class, "displayName", displayName), _class;
116
+ }(Component), _defineProperty(_Class, "displayName", displayName), _Class;
119
117
  };
@@ -17,7 +17,7 @@ import ElementGroup from './element-group';
17
17
 
18
18
  // Determine whether the element can be display as inline/block.
19
19
 
20
- export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_ElementDisplaySchema, ElementName.AssignedTo, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AssignedToGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AttachmentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.AuthorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ChecklistProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CollaboratorGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CommentCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.CreatedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.DueOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.LinkIcon, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Location, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ModifiedOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedBy, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.OwnedByGroup, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Preview, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.Priority, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReactCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ReadTime, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Snippet, ['block']), _defineProperty(_ElementDisplaySchema, ElementName.SourceBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SentOn, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.State, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubscriberCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.SubTasksProgress, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.StoryPoints, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.Title, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.ViewCount, ['inline']), _defineProperty(_ElementDisplaySchema, ElementName.VoteCount, ['inline']), _ElementDisplaySchema);
20
+ export var ElementDisplaySchema = (_ElementDisplaySchema = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ElementDisplaySchema, ElementName.AssignedTo, ['inline']), ElementName.AssignedToGroup, ['inline']), ElementName.AttachmentCount, ['inline']), ElementName.AuthorGroup, ['inline']), ElementName.ChecklistProgress, ['inline']), ElementName.CollaboratorGroup, ['inline']), ElementName.CommentCount, ['inline']), ElementName.CreatedBy, ['inline']), ElementName.CreatedOn, ['inline']), ElementName.DueOn, ['inline']), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ElementDisplaySchema, ElementName.LatestCommit, ['inline']), ElementName.LinkIcon, ['inline']), ElementName.Location, ['inline']), ElementName.ModifiedBy, ['inline']), ElementName.ModifiedOn, ['inline']), ElementName.OwnedBy, ['inline']), ElementName.OwnedByGroup, ['inline']), ElementName.Preview, ['block']), ElementName.Priority, ['inline']), ElementName.ProgrammingLanguage, ['inline']), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ElementDisplaySchema, ElementName.Provider, ['inline']), ElementName.ReactCount, ['inline']), ElementName.ReadTime, ['inline']), ElementName.Snippet, ['block']), ElementName.SourceBranch, ['inline']), ElementName.SentOn, ['inline']), ElementName.State, ['inline']), ElementName.SubscriberCount, ['inline']), ElementName.SubTasksProgress, ['inline']), ElementName.StoryPoints, ['inline']), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_ElementDisplaySchema, ElementName.TargetBranch, ['inline']), ElementName.Title, ['inline']), ElementName.ViewCount, ['inline']), ElementName.VoteCount, ['inline']));
21
21
  var getDirectionStyles = function getDirectionStyles(direction) {
22
22
  switch (direction) {
23
23
  case SmartLinkDirection.Vertical:
@@ -8,139 +8,139 @@ import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
8
8
  import { R400 } from '@atlaskit/theme/colors';
9
9
  import { IconType } from '../../../../../constants';
10
10
  // prettier-ignore
11
- var importIconMapper = (_importIconMapper = {}, _defineProperty(_importIconMapper, IconType.Archive, function () {
11
+ var importIconMapper = (_importIconMapper = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapper, IconType.Archive, function () {
12
12
  return import( /* webpackChunkName: "glyphArchive" */'@atlaskit/icon-file-type/glyph/archive/16');
13
- }), _defineProperty(_importIconMapper, IconType.Audio, function () {
13
+ }), IconType.Audio, function () {
14
14
  return import( /* webpackChunkName: "glyphAudio" */'@atlaskit/icon-file-type/glyph/audio/16');
15
- }), _defineProperty(_importIconMapper, IconType.Code, function () {
15
+ }), IconType.Code, function () {
16
16
  return import( /* webpackChunkName: "glyphCode" */'@atlaskit/icon-file-type/glyph/source-code/16');
17
- }), _defineProperty(_importIconMapper, IconType.Executable, function () {
17
+ }), IconType.Executable, function () {
18
18
  return import( /* webpackChunkName: "glyphExecutable" */'@atlaskit/icon-file-type/glyph/executable/16');
19
- }), _defineProperty(_importIconMapper, IconType.File, function () {
19
+ }), IconType.File, function () {
20
20
  return import( /* webpackChunkName: "glyphFile" */'@atlaskit/icon-file-type/glyph/generic/16');
21
- }), _defineProperty(_importIconMapper, IconType.Folder, function () {
21
+ }), IconType.Folder, function () {
22
22
  return import( /* webpackChunkName: "glyphFolder" */'@atlaskit/icon-file-type/glyph/folder/16');
23
- }), _defineProperty(_importIconMapper, IconType.Generic, function () {
23
+ }), IconType.Generic, function () {
24
24
  return import( /* webpackChunkName: "glyphGeneric" */'@atlaskit/icon-file-type/glyph/generic/16');
25
- }), _defineProperty(_importIconMapper, IconType.GIF, function () {
25
+ }), IconType.GIF, function () {
26
26
  return import( /* webpackChunkName: "glyphGIF" */'@atlaskit/icon-file-type/glyph/gif/16');
27
- }), _defineProperty(_importIconMapper, IconType.GoogleDocs, function () {
27
+ }), IconType.GoogleDocs, function () {
28
28
  return import( /* webpackChunkName: "glyphGoogleDocs" */'@atlaskit/icon-file-type/glyph/google-doc/16');
29
- }), _defineProperty(_importIconMapper, IconType.GoogleForms, function () {
29
+ }), IconType.GoogleForms, function () {
30
30
  return import( /* webpackChunkName: "glyphGoogleForms" */'@atlaskit/icon-file-type/glyph/google-form/16');
31
- }), _defineProperty(_importIconMapper, IconType.GoogleSheets, function () {
31
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapper, IconType.GoogleSheets, function () {
32
32
  return import( /* webpackChunkName: "glyphGoogleSheets" */'@atlaskit/icon-file-type/glyph/google-sheet/16');
33
- }), _defineProperty(_importIconMapper, IconType.GoogleSlides, function () {
33
+ }), IconType.GoogleSlides, function () {
34
34
  return import( /* webpackChunkName: "glyphGoogleSlides" */'@atlaskit/icon-file-type/glyph/google-slide/16');
35
- }), _defineProperty(_importIconMapper, IconType.Image, function () {
35
+ }), IconType.Image, function () {
36
36
  return import( /* webpackChunkName: "glyphImage" */'@atlaskit/icon-file-type/glyph/image/16');
37
- }), _defineProperty(_importIconMapper, IconType.MSExcel, function () {
37
+ }), IconType.MSExcel, function () {
38
38
  return import( /* webpackChunkName: "glyphMSExcel" */'@atlaskit/icon-file-type/glyph/excel-spreadsheet/16');
39
- }), _defineProperty(_importIconMapper, IconType.MSPowerpoint, function () {
39
+ }), IconType.MSPowerpoint, function () {
40
40
  return import( /* webpackChunkName: "glyphMSPowerpoint" */'@atlaskit/icon-file-type/glyph/powerpoint-presentation/16');
41
- }), _defineProperty(_importIconMapper, IconType.MSWord, function () {
41
+ }), IconType.MSWord, function () {
42
42
  return import( /* webpackChunkName: "glyphMSWord" */'@atlaskit/icon-file-type/glyph/word-document/16');
43
- }), _defineProperty(_importIconMapper, IconType.PDF, function () {
43
+ }), IconType.PDF, function () {
44
44
  return import( /* webpackChunkName: "glyphPDF" */'@atlaskit/icon-file-type/glyph/pdf-document/16');
45
- }), _defineProperty(_importIconMapper, IconType.Presentation, function () {
45
+ }), IconType.Presentation, function () {
46
46
  return import( /* webpackChunkName: "glyphPresentation" */'@atlaskit/icon-file-type/glyph/presentation/16');
47
- }), _defineProperty(_importIconMapper, IconType.Sketch, function () {
47
+ }), IconType.Sketch, function () {
48
48
  return import( /* webpackChunkName: "glyphSketch" */'@atlaskit/icon-file-type/glyph/sketch/16');
49
- }), _defineProperty(_importIconMapper, IconType.Spreadsheet, function () {
49
+ }), IconType.Spreadsheet, function () {
50
50
  return import( /* webpackChunkName: "glyphSpreadsheet" */'@atlaskit/icon-file-type/glyph/spreadsheet/16');
51
- }), _defineProperty(_importIconMapper, IconType.Template, function () {
51
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapper, IconType.Template, function () {
52
52
  return import( /* webpackChunkName: "glyphTemplate" */'@atlaskit/icon/glyph/document-filled');
53
- }), _defineProperty(_importIconMapper, IconType.Video, function () {
53
+ }), IconType.Video, function () {
54
54
  return import( /* webpackChunkName: "glyphVideo" */'@atlaskit/icon-file-type/glyph/video/16');
55
- }), _defineProperty(_importIconMapper, IconType.Branch, function () {
55
+ }), IconType.Branch, function () {
56
56
  return import( /* webpackChunkName: "glyphBranch" */'@atlaskit/icon-object/glyph/branch/16');
57
- }), _defineProperty(_importIconMapper, IconType.Commit, function () {
57
+ }), IconType.Commit, function () {
58
58
  return import( /* webpackChunkName: "glyphCommit" */'@atlaskit/icon-object/glyph/commit/16');
59
- }), _defineProperty(_importIconMapper, IconType.Project, function () {
59
+ }), IconType.Project, function () {
60
60
  return import( /* webpackChunkName: "glyphProject" */'@atlaskit/icon/glyph/people-group');
61
- }), _defineProperty(_importIconMapper, IconType.PullRequest, function () {
61
+ }), IconType.PullRequest, function () {
62
62
  return import( /* webpackChunkName: "glyphPullRequest" */'@atlaskit/icon-object/glyph/pull-request/16');
63
- }), _defineProperty(_importIconMapper, IconType.Repo, function () {
63
+ }), IconType.Repo, function () {
64
64
  return import( /* webpackChunkName: "glyphRepo" */'@atlaskit/icon-object/glyph/code/16');
65
- }), _defineProperty(_importIconMapper, IconType.Bug, function () {
65
+ }), IconType.Bug, function () {
66
66
  return import( /* webpackChunkName: "glyphBug" */'@atlaskit/icon-object/glyph/bug/16');
67
- }), _defineProperty(_importIconMapper, IconType.Change, function () {
67
+ }), IconType.Change, function () {
68
68
  return import( /* webpackChunkName: "glyphChange" */'@atlaskit/icon-object/glyph/changes/16');
69
- }), _defineProperty(_importIconMapper, IconType.Epic, function () {
69
+ }), IconType.Epic, function () {
70
70
  return import( /* webpackChunkName: "glyphEpic" */'@atlaskit/icon-object/glyph/epic/16');
71
- }), _defineProperty(_importIconMapper, IconType.Incident, function () {
71
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapper, IconType.Incident, function () {
72
72
  return import( /* webpackChunkName: "glyphIncident" */'@atlaskit/icon-object/glyph/incident/16');
73
- }), _defineProperty(_importIconMapper, IconType.Problem, function () {
73
+ }), IconType.Problem, function () {
74
74
  return import( /* webpackChunkName: "glyphProblem" */'@atlaskit/icon-object/glyph/problem/16');
75
- }), _defineProperty(_importIconMapper, IconType.ServiceRequest, function () {
75
+ }), IconType.ServiceRequest, function () {
76
76
  return import( /* webpackChunkName: "glyphServiceRequest" */'@atlaskit/icon-object/glyph/issue/16');
77
- }), _defineProperty(_importIconMapper, IconType.Story, function () {
77
+ }), IconType.Story, function () {
78
78
  return import( /* webpackChunkName: "glyphStory" */'@atlaskit/icon-object/glyph/story/16');
79
- }), _defineProperty(_importIconMapper, IconType.SubTask, function () {
79
+ }), IconType.SubTask, function () {
80
80
  return import( /* webpackChunkName: "glyphSubTask" */'@atlaskit/icon-object/glyph/subtask/16');
81
- }), _defineProperty(_importIconMapper, IconType.Task, function () {
81
+ }), IconType.Task, function () {
82
82
  return import( /* webpackChunkName: "glyphTask" */'@atlaskit/icon-object/glyph/task/16');
83
- }), _defineProperty(_importIconMapper, IconType.Confluence, function () {
83
+ }), IconType.Confluence, function () {
84
84
  return import( /* webpackChunkName: "glyphConfluence" */'@atlaskit/logo/confluence-icon').then(function (_ref) {
85
85
  var ConfluenceIcon = _ref.ConfluenceIcon;
86
86
  return {
87
87
  default: ConfluenceIcon
88
88
  };
89
89
  });
90
- }), _defineProperty(_importIconMapper, IconType.Jira, function () {
90
+ }), IconType.Jira, function () {
91
91
  return import( /* webpackChunkName: "glyphJira" */'@atlaskit/logo/jira-icon').then(function (_ref2) {
92
92
  var JiraIcon = _ref2.JiraIcon;
93
93
  return {
94
94
  default: JiraIcon
95
95
  };
96
96
  });
97
- }), _defineProperty(_importIconMapper, IconType.Default, function () {
97
+ }), IconType.Default, function () {
98
98
  return import( /* webpackChunkName: "glyphDefault" */'@atlaskit/icon/glyph/link');
99
- }), _defineProperty(_importIconMapper, IconType.Error, function () {
99
+ }), IconType.Error, function () {
100
100
  return import( /* webpackChunkName: "glyphError" */'@atlaskit/icon/glyph/error');
101
- }), _defineProperty(_importIconMapper, IconType.Forbidden, function () {
101
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapper, IconType.Forbidden, function () {
102
102
  return import( /* webpackChunkName: "glyphForbidden" */'@atlaskit/icon/glyph/lock-filled');
103
- }), _defineProperty(_importIconMapper, IconType.Attachment, function () {
103
+ }), IconType.Attachment, function () {
104
104
  return import( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/attachment');
105
- }), _defineProperty(_importIconMapper, IconType.CheckItem, function () {
105
+ }), IconType.CheckItem, function () {
106
106
  return import( /* webpackChunkName: "glyphAttachment" */'@atlaskit/icon/glyph/task');
107
- }), _defineProperty(_importIconMapper, IconType.Comment, function () {
107
+ }), IconType.Comment, function () {
108
108
  return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/comment');
109
- }), _defineProperty(_importIconMapper, IconType.View, function () {
109
+ }), IconType.View, function () {
110
110
  return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/watch');
111
- }), _defineProperty(_importIconMapper, IconType.React, function () {
111
+ }), IconType.React, function () {
112
112
  return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/like');
113
- }), _defineProperty(_importIconMapper, IconType.Vote, function () {
113
+ }), IconType.Vote, function () {
114
114
  return import( /* webpackChunkName: "glyphComment" */'@atlaskit/icon/glyph/arrow-up');
115
- }), _defineProperty(_importIconMapper, IconType.PriorityBlocker, function () {
115
+ }), IconType.PriorityBlocker, function () {
116
116
  return import( /* webpackChunkName: "glyphBlocker" */'@atlaskit/icon-priority/glyph/priority-blocker');
117
- }), _defineProperty(_importIconMapper, IconType.PriorityCritical, function () {
117
+ }), IconType.PriorityCritical, function () {
118
118
  return import( /* webpackChunkName: "glyphCritical" */'@atlaskit/icon-priority/glyph/priority-critical');
119
- }), _defineProperty(_importIconMapper, IconType.PriorityHigh, function () {
119
+ }), IconType.PriorityHigh, function () {
120
120
  return import( /* webpackChunkName: "glyphHigh" */'@atlaskit/icon-priority/glyph/priority-high');
121
- }), _defineProperty(_importIconMapper, IconType.PriorityHighest, function () {
121
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_importIconMapper, IconType.PriorityHighest, function () {
122
122
  return import( /* webpackChunkName: "glyphHighest" */'@atlaskit/icon-priority/glyph/priority-highest');
123
- }), _defineProperty(_importIconMapper, IconType.PriorityLow, function () {
123
+ }), IconType.PriorityLow, function () {
124
124
  return import( /* webpackChunkName: "glyphLow" */'@atlaskit/icon-priority/glyph/priority-low');
125
- }), _defineProperty(_importIconMapper, IconType.PriorityLowest, function () {
125
+ }), IconType.PriorityLowest, function () {
126
126
  return import( /* webpackChunkName: "glyphLowest" */'@atlaskit/icon-priority/glyph/priority-lowest');
127
- }), _defineProperty(_importIconMapper, IconType.PriorityMajor, function () {
127
+ }), IconType.PriorityMajor, function () {
128
128
  return import( /* webpackChunkName: "glyphMajor" */'@atlaskit/icon-priority/glyph/priority-major');
129
- }), _defineProperty(_importIconMapper, IconType.PriorityMedium, function () {
129
+ }), IconType.PriorityMedium, function () {
130
130
  return import( /* webpackChunkName: "glyphMedium" */'@atlaskit/icon-priority/glyph/priority-medium');
131
- }), _defineProperty(_importIconMapper, IconType.PriorityMinor, function () {
131
+ }), IconType.PriorityMinor, function () {
132
132
  return import( /* webpackChunkName: "glyphMinor" */'@atlaskit/icon-priority/glyph/priority-minor');
133
- }), _defineProperty(_importIconMapper, IconType.PriorityTrivial, function () {
133
+ }), IconType.PriorityTrivial, function () {
134
134
  return import( /* webpackChunkName: "glyphTrivial" */'@atlaskit/icon-priority/glyph/priority-trivial');
135
- }), _defineProperty(_importIconMapper, IconType.PriorityUndefined, function () {
135
+ }), IconType.PriorityUndefined, function () {
136
136
  return import( /* webpackChunkName: "glyphUndefined" */'@atlaskit/icon/glyph/question');
137
- }), _defineProperty(_importIconMapper, IconType.ProgrammingLanguage, function () {
137
+ }), IconType.ProgrammingLanguage, function () {
138
138
  return import( /* webpackChunkName: "glyphProgrammingLanguage" */'@atlaskit/icon/glyph/code');
139
- }), _defineProperty(_importIconMapper, IconType.Subscriber, function () {
139
+ }), IconType.Subscriber, function () {
140
140
  return import( /* webpackChunkName: "glyphSubscriber" */'@atlaskit/icon/glyph/people');
141
141
  }), _defineProperty(_importIconMapper, IconType.SubTasksProgress, function () {
142
142
  return import( /* webpackChunkName: "glyphSubtaskProgress" */'@atlaskit/icon/glyph/subtask');
143
- }), _importIconMapper);
143
+ }));
144
144
  var getIconImportFn = function getIconImportFn(icon) {
145
145
  return importIconMapper[icon];
146
146
  };
@@ -29,7 +29,7 @@ var labelStyles = css({
29
29
  paddingLeft: "var(--ds-space-025, 0.125rem)",
30
30
  verticalAlign: 'middle'
31
31
  });
32
- var messageMapper = (_messageMapper = {}, _defineProperty(_messageMapper, IconType.PriorityBlocker, messages.priority_blocker), _defineProperty(_messageMapper, IconType.PriorityCritical, messages.priority_critical), _defineProperty(_messageMapper, IconType.PriorityHigh, messages.priority_high), _defineProperty(_messageMapper, IconType.PriorityHighest, messages.priority_highest), _defineProperty(_messageMapper, IconType.PriorityLow, messages.priority_low), _defineProperty(_messageMapper, IconType.PriorityLowest, messages.priority_lowest), _defineProperty(_messageMapper, IconType.PriorityMajor, messages.priority_major), _defineProperty(_messageMapper, IconType.PriorityMedium, messages.priority_medium), _defineProperty(_messageMapper, IconType.PriorityMinor, messages.priority_minor), _defineProperty(_messageMapper, IconType.PriorityTrivial, messages.priority_trivial), _defineProperty(_messageMapper, IconType.PriorityUndefined, messages.priority_undefined), _messageMapper);
32
+ var messageMapper = (_messageMapper = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_messageMapper, IconType.PriorityBlocker, messages.priority_blocker), IconType.PriorityCritical, messages.priority_critical), IconType.PriorityHigh, messages.priority_high), IconType.PriorityHighest, messages.priority_highest), IconType.PriorityLow, messages.priority_low), IconType.PriorityLowest, messages.priority_lowest), IconType.PriorityMajor, messages.priority_major), IconType.PriorityMedium, messages.priority_medium), IconType.PriorityMinor, messages.priority_minor), IconType.PriorityTrivial, messages.priority_trivial), _defineProperty(_messageMapper, IconType.PriorityUndefined, messages.priority_undefined));
33
33
  var getFormattedMessageFromIcon = function getFormattedMessageFromIcon(icon) {
34
34
  if (icon) {
35
35
  var descriptor = messageMapper[icon];
@@ -16,106 +16,106 @@ import Link from './link';
16
16
  import Lozenge from './lozenge';
17
17
  import Media from './media';
18
18
  import Text from './text';
19
- var elementMappings = (_elementMappings = {}, _defineProperty(_elementMappings, ElementName.AttachmentCount, {
19
+ var elementMappings = (_elementMappings = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.AttachmentCount, {
20
20
  component: Badge,
21
21
  props: {
22
22
  icon: IconType.Attachment
23
23
  }
24
- }), _defineProperty(_elementMappings, ElementName.AuthorGroup, {
24
+ }), ElementName.AuthorGroup, {
25
25
  component: AvatarGroup
26
- }), _defineProperty(_elementMappings, ElementName.ChecklistProgress, {
26
+ }), ElementName.ChecklistProgress, {
27
27
  component: Badge,
28
28
  props: {
29
29
  icon: IconType.CheckItem
30
30
  }
31
- }), _defineProperty(_elementMappings, ElementName.CollaboratorGroup, {
31
+ }), ElementName.CollaboratorGroup, {
32
32
  component: AvatarGroup
33
- }), _defineProperty(_elementMappings, ElementName.CommentCount, {
33
+ }), ElementName.CommentCount, {
34
34
  component: Badge,
35
35
  props: {
36
36
  icon: IconType.Comment
37
37
  }
38
- }), _defineProperty(_elementMappings, ElementName.ViewCount, {
38
+ }), ElementName.ViewCount, {
39
39
  component: Badge,
40
40
  props: {
41
41
  icon: IconType.View
42
42
  }
43
- }), _defineProperty(_elementMappings, ElementName.ReactCount, {
43
+ }), ElementName.ReactCount, {
44
44
  component: Badge,
45
45
  props: {
46
46
  icon: IconType.React
47
47
  }
48
- }), _defineProperty(_elementMappings, ElementName.VoteCount, {
48
+ }), ElementName.VoteCount, {
49
49
  component: Badge,
50
50
  props: {
51
51
  icon: IconType.Vote
52
52
  }
53
- }), _defineProperty(_elementMappings, ElementName.CreatedBy, {
53
+ }), ElementName.CreatedBy, {
54
54
  component: Text
55
- }), _defineProperty(_elementMappings, ElementName.OwnedBy, {
55
+ }), ElementName.OwnedBy, {
56
56
  component: Text
57
- }), _defineProperty(_elementMappings, ElementName.AssignedTo, {
57
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.AssignedTo, {
58
58
  component: Text
59
- }), _defineProperty(_elementMappings, ElementName.AssignedToGroup, {
59
+ }), ElementName.AssignedToGroup, {
60
60
  component: AvatarGroup
61
- }), _defineProperty(_elementMappings, ElementName.OwnedByGroup, {
61
+ }), ElementName.OwnedByGroup, {
62
62
  component: AvatarGroup
63
- }), _defineProperty(_elementMappings, ElementName.CreatedOn, {
63
+ }), ElementName.CreatedOn, {
64
64
  component: DateTime
65
- }), _defineProperty(_elementMappings, ElementName.DueOn, {
65
+ }), ElementName.DueOn, {
66
66
  component: Lozenge
67
- }), _defineProperty(_elementMappings, ElementName.LatestCommit, {
67
+ }), ElementName.LatestCommit, {
68
68
  component: Badge,
69
69
  props: {
70
70
  icon: IconType.Commit
71
71
  }
72
- }), _defineProperty(_elementMappings, ElementName.LinkIcon, {
72
+ }), ElementName.LinkIcon, {
73
73
  component: Icon
74
- }), _defineProperty(_elementMappings, ElementName.ModifiedBy, {
74
+ }), ElementName.ModifiedBy, {
75
75
  component: Text
76
- }), _defineProperty(_elementMappings, ElementName.ModifiedOn, {
76
+ }), ElementName.ModifiedOn, {
77
77
  component: DateTime
78
- }), _defineProperty(_elementMappings, ElementName.Preview, {
78
+ }), ElementName.Preview, {
79
79
  component: Media
80
- }), _defineProperty(_elementMappings, ElementName.Priority, {
80
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.Priority, {
81
81
  component: Badge
82
- }), _defineProperty(_elementMappings, ElementName.ProgrammingLanguage, {
82
+ }), ElementName.ProgrammingLanguage, {
83
83
  component: Badge,
84
84
  props: {
85
85
  icon: IconType.ProgrammingLanguage
86
86
  }
87
- }), _defineProperty(_elementMappings, ElementName.Provider, {
87
+ }), ElementName.Provider, {
88
88
  component: Badge
89
- }), _defineProperty(_elementMappings, ElementName.ReadTime, {
89
+ }), ElementName.ReadTime, {
90
90
  component: Text
91
- }), _defineProperty(_elementMappings, ElementName.SentOn, {
91
+ }), ElementName.SentOn, {
92
92
  component: DateTime
93
- }), _defineProperty(_elementMappings, ElementName.SourceBranch, {
93
+ }), ElementName.SourceBranch, {
94
94
  component: Text
95
- }), _defineProperty(_elementMappings, ElementName.State, {
95
+ }), ElementName.State, {
96
96
  component: Lozenge
97
- }), _defineProperty(_elementMappings, ElementName.SubscriberCount, {
97
+ }), ElementName.SubscriberCount, {
98
98
  component: Badge,
99
99
  props: {
100
100
  icon: IconType.Subscriber
101
101
  }
102
- }), _defineProperty(_elementMappings, ElementName.SubTasksProgress, {
102
+ }), ElementName.SubTasksProgress, {
103
103
  component: Badge,
104
104
  props: {
105
105
  icon: IconType.SubTasksProgress
106
106
  }
107
- }), _defineProperty(_elementMappings, ElementName.StoryPoints, {
107
+ }), ElementName.StoryPoints, {
108
108
  component: AtlaskitBadge
109
- }), _defineProperty(_elementMappings, ElementName.TargetBranch, {
109
+ }), _defineProperty(_defineProperty(_defineProperty(_elementMappings, ElementName.TargetBranch, {
110
110
  component: Text
111
- }), _defineProperty(_elementMappings, ElementName.Title, {
111
+ }), ElementName.Title, {
112
112
  component: Link
113
- }), _defineProperty(_elementMappings, ElementName.Location, {
113
+ }), ElementName.Location, {
114
114
  component: Link,
115
115
  props: {
116
116
  theme: SmartLinkInternalTheme.Grey
117
117
  }
118
- }), _elementMappings);
118
+ }));
119
119
  var getContextKey = function getContextKey(name) {
120
120
  // Attempt to predict context prop name in advance to reduce the amount of
121
121
  // code run during runtime
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  var _excluded = ["linkIcon"];
6
- var _sizeToButtonSpacing, _templateObject;
6
+ var _templateObject;
7
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; }
8
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; }
9
9
  import React from 'react';
@@ -15,7 +15,7 @@ import Loadable from 'react-loadable';
15
15
  import { SmartLinkSize } from '../../../constants';
16
16
  import { openEmbedModal } from '../../EmbedModal/utils';
17
17
  import Icon from './elements/icon';
18
- export var sizeToButtonSpacing = (_sizeToButtonSpacing = {}, _defineProperty(_sizeToButtonSpacing, SmartLinkSize.Small, 'none'), _defineProperty(_sizeToButtonSpacing, SmartLinkSize.Medium, 'compact'), _defineProperty(_sizeToButtonSpacing, SmartLinkSize.Large, 'compact'), _defineProperty(_sizeToButtonSpacing, SmartLinkSize.XLarge, 'default'), _sizeToButtonSpacing);
18
+ export var sizeToButtonSpacing = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, SmartLinkSize.Small, 'none'), SmartLinkSize.Medium, 'compact'), SmartLinkSize.Large, 'compact'), SmartLinkSize.XLarge, 'default');
19
19
  export var getFormattedMessage = function getFormattedMessage(message) {
20
20
  if (message) {
21
21
  var descriptor = message.descriptor,
@@ -93,7 +93,7 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
93
93
  case SmartLinkSize.XLarge:
94
94
  return css({
95
95
  fontSize: '1.25rem',
96
- fontWeight: 400,
96
+ fontWeight: "var(--ds-font-weight-regular, 400)",
97
97
  letterSpacing: '-0.008em',
98
98
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
99
99
  lineHeight: getLinkLineHeight(size)
@@ -102,7 +102,7 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
102
102
  case SmartLinkSize.Medium:
103
103
  return css({
104
104
  fontSize: '0.875rem',
105
- fontWeight: 400,
105
+ fontWeight: "var(--ds-font-weight-regular, 400)",
106
106
  letterSpacing: '-0.003em',
107
107
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
108
108
  lineHeight: getLinkLineHeight(size)
@@ -111,7 +111,7 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
111
111
  default:
112
112
  return css({
113
113
  fontSize: '0.75rem',
114
- fontWeight: 400,
114
+ fontWeight: "var(--ds-font-weight-regular, 400)",
115
115
  letterSpacing: '0em',
116
116
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
117
117
  lineHeight: getLinkLineHeight(size)
@@ -32,7 +32,7 @@ export var separatorCss = css({
32
32
  export var HoverCardContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tbackground: none;\n\tborder-width: 0;\n\tbox-sizing: border-box;\n\twidth: ", "rem;\n\n\t.", " {\n\t\tdisplay: none;\n\t}\n"])), NEW_CARD_WIDTH_REM, loadingPlaceholderClassName);
33
33
 
34
34
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
- export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\tgap: ", ";\n\n\t", "\n\n\t// title and subtitle element group\n [data-smart-element-group] {\n\t\t// gap between title and subtitle\n\t\tgap: 0.06rem;\n\t\tdisplay: flex;\n\t\t/* subtitle element group */\n\t\t> [data-smart-element-group] {\n\t\t\t> span {\n\t\t\t\tmargin-right: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t[data-smart-element='Title'] {\n\t\tfont-weight: 600;\n\t}\n"])), blockGap, separatorCss, elementGap);
35
+ export var titleBlockCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\tgap: ", ";\n\n\t", "\n\n\t// title and subtitle element group\n [data-smart-element-group] {\n\t\t// gap between title and subtitle\n\t\tgap: 0.06rem;\n\t\tdisplay: flex;\n\t\t/* subtitle element group */\n\t\t> [data-smart-element-group] {\n\t\t\t> span {\n\t\t\t\tmargin-right: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t[data-smart-element='Title'] {\n\t\tfont-weight: ", ";\n\t}\n"])), blockGap, separatorCss, elementGap, "var(--ds-font-weight-semibold, 600)");
36
36
  export var getTransitionStyles = function getTransitionStyles(snippetHeight) {
37
37
  return css({
38
38
  transition: 'height 300ms ease-in-out',
@@ -1,11 +1,10 @@
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 { FormattedMessage } from 'react-intl-next';
@@ -20,17 +19,15 @@ import { IconAndTitleLayout } from '../IconAndTitleLayout';
20
19
  import { IconStyledButton } from '../styled';
21
20
  import withFrameStyleControl from '../utils/withFrameStyleControl';
22
21
  export var InlineCardErroredView = /*#__PURE__*/function (_React$Component) {
23
- _inherits(InlineCardErroredView, _React$Component);
24
- var _super = _createSuper(InlineCardErroredView);
25
22
  function InlineCardErroredView() {
26
23
  var _this;
27
24
  _classCallCheck(this, InlineCardErroredView);
28
25
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
29
26
  args[_key] = arguments[_key];
30
27
  }
31
- _this = _super.call.apply(_super, [this].concat(args));
32
- _defineProperty(_assertThisInitialized(_this), "frameRef", /*#__PURE__*/React.createRef());
33
- _defineProperty(_assertThisInitialized(_this), "handleRetry", function (event) {
28
+ _this = _callSuper(this, InlineCardErroredView, [].concat(args));
29
+ _defineProperty(_this, "frameRef", /*#__PURE__*/React.createRef());
30
+ _defineProperty(_this, "handleRetry", function (event) {
34
31
  var onRetry = _this.props.onRetry;
35
32
  if (onRetry) {
36
33
  event.preventDefault();
@@ -38,7 +35,7 @@ export var InlineCardErroredView = /*#__PURE__*/function (_React$Component) {
38
35
  onRetry();
39
36
  }
40
37
  });
41
- _defineProperty(_assertThisInitialized(_this), "renderActionButton", function () {
38
+ _defineProperty(_this, "renderActionButton", function () {
42
39
  var onRetry = _this.props.onRetry;
43
40
  var ActionButton = withFrameStyleControl(Button, _this.frameRef);
44
41
  return onRetry && /*#__PURE__*/React.createElement(ActionButton, {
@@ -50,7 +47,8 @@ export var InlineCardErroredView = /*#__PURE__*/function (_React$Component) {
50
47
  });
51
48
  return _this;
52
49
  }
53
- _createClass(InlineCardErroredView, [{
50
+ _inherits(InlineCardErroredView, _React$Component);
51
+ return _createClass(InlineCardErroredView, [{
54
52
  key: "render",
55
53
  value: function render() {
56
54
  var _this$props = this.props,
@@ -87,5 +85,4 @@ export var InlineCardErroredView = /*#__PURE__*/function (_React$Component) {
87
85
  return content;
88
86
  }
89
87
  }]);
90
- return InlineCardErroredView;
91
88
  }(React.Component);