@atlaskit/smart-card 32.7.6 → 32.7.8

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 (96) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/extractors/flexible/actions/index.js +5 -7
  3. package/dist/cjs/state/actions/index.js +13 -38
  4. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +54 -305
  5. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
  6. package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
  7. package/dist/cjs/utils/analytics/analytics.js +28 -304
  8. package/dist/cjs/utils/analytics/index.js +0 -66
  9. package/dist/cjs/utils/mocks.js +5 -7
  10. package/dist/cjs/view/BlockCard/views/styled.js +1 -1
  11. package/dist/cjs/view/Card/index.js +5 -7
  12. package/dist/cjs/view/CardWithUrl/component.js +7 -22
  13. package/dist/cjs/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
  14. package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  15. package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
  16. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
  17. package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
  18. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
  19. package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +1 -1
  20. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
  21. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
  22. package/dist/cjs/view/FlexibleCard/components/elements/utils.js +34 -34
  23. package/dist/cjs/view/FlexibleCard/components/utils.js +5 -5
  24. package/dist/cjs/view/HoverCard/components/HoverCardContent.js +21 -53
  25. package/dist/cjs/view/HoverCard/styled.js +1 -1
  26. package/dist/cjs/view/InlineCard/ErroredView/index.js +8 -11
  27. package/dist/cjs/view/InlineCard/ForbiddenView/index.js +10 -13
  28. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +7 -10
  29. package/dist/cjs/view/InlineCard/ResolvedView/index.js +5 -7
  30. package/dist/cjs/view/InlineCard/ResolvingView/index.js +5 -7
  31. package/dist/cjs/view/LinkUrl/index.js +1 -1
  32. package/dist/cjs/view/LinkView/index.js +5 -7
  33. package/dist/cjs/view/common/UnauthorisedViewContent.js +3 -9
  34. package/dist/es2019/state/actions/index.js +13 -38
  35. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +2 -238
  36. package/dist/es2019/utils/analytics/analytics.js +2 -286
  37. package/dist/es2019/utils/analytics/index.js +1 -1
  38. package/dist/es2019/view/BlockCard/views/styled.js +1 -1
  39. package/dist/es2019/view/CardWithUrl/component.js +8 -23
  40. package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  41. package/dist/es2019/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
  42. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +3 -3
  43. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
  44. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
  45. package/dist/es2019/view/FlexibleCard/components/utils.js +3 -3
  46. package/dist/es2019/view/HoverCard/components/HoverCardContent.js +21 -53
  47. package/dist/es2019/view/HoverCard/styled.js +1 -1
  48. package/dist/es2019/view/LinkUrl/index.js +1 -1
  49. package/dist/es2019/view/common/UnauthorisedViewContent.js +3 -9
  50. package/dist/esm/extractors/flexible/actions/index.js +5 -7
  51. package/dist/esm/state/actions/index.js +13 -38
  52. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +55 -306
  53. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +1 -2
  54. package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +4 -5
  55. package/dist/esm/utils/analytics/analytics.js +27 -303
  56. package/dist/esm/utils/analytics/index.js +1 -1
  57. package/dist/esm/utils/mocks.js +5 -7
  58. package/dist/esm/view/BlockCard/views/styled.js +1 -1
  59. package/dist/esm/view/Card/index.js +5 -7
  60. package/dist/esm/view/CardWithUrl/component.js +8 -23
  61. package/dist/esm/view/EmbedCard/EmbedResizeMessageListener.js +7 -10
  62. package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +1 -1
  63. package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +4 -13
  64. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +10 -12
  65. package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
  66. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +61 -61
  67. package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +1 -1
  68. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/index.js +4 -16
  69. package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +1 -5
  70. package/dist/esm/view/FlexibleCard/components/elements/utils.js +34 -34
  71. package/dist/esm/view/FlexibleCard/components/utils.js +5 -5
  72. package/dist/esm/view/HoverCard/components/HoverCardContent.js +21 -53
  73. package/dist/esm/view/HoverCard/styled.js +1 -1
  74. package/dist/esm/view/InlineCard/ErroredView/index.js +8 -11
  75. package/dist/esm/view/InlineCard/ForbiddenView/index.js +10 -13
  76. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +7 -10
  77. package/dist/esm/view/InlineCard/ResolvedView/index.js +5 -7
  78. package/dist/esm/view/InlineCard/ResolvingView/index.js +5 -7
  79. package/dist/esm/view/LinkUrl/index.js +1 -1
  80. package/dist/esm/view/LinkView/index.js +5 -7
  81. package/dist/esm/view/common/UnauthorisedViewContent.js +3 -9
  82. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
  83. package/dist/types/state/hooks/useSmartLink.d.ts +0 -12
  84. package/dist/types/utils/analytics/analytics.d.ts +1 -51
  85. package/dist/types/utils/analytics/index.d.ts +1 -1
  86. package/dist/types/utils/analytics/types.d.ts +0 -60
  87. package/dist/types/utils/mocks.d.ts +0 -12
  88. package/dist/types/view/common/UnauthorisedViewContent.d.ts +1 -1
  89. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -101
  90. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +0 -12
  91. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +1 -51
  92. package/dist/types-ts4.5/utils/analytics/index.d.ts +1 -1
  93. package/dist/types-ts4.5/utils/analytics/types.d.ts +0 -60
  94. package/dist/types-ts4.5/utils/mocks.d.ts +0 -12
  95. package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +1 -1
  96. package/package.json +2 -5
@@ -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];
@@ -11,10 +11,8 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { jsx } from '@emotion/react';
13
13
  import DropdownMenu from '@atlaskit/dropdown-menu';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { useAnalyticsEvents } from '../../../../../../common/analytics/generated/use-analytics-events';
16
15
  import extractLozengeActionItems from '../../../../../../extractors/action/extract-lozenge-action-items';
17
- import { useFlexibleUiAnalyticsContext } from '../../../../../../state/flexible-ui-context';
18
16
  import useInvoke from '../../../../../../state/hooks/use-invoke';
19
17
  import { isInvokeCustomError } from '../../../../../../state/hooks/use-invoke/utils';
20
18
  import useResolve from '../../../../../../state/hooks/use-resolve';
@@ -69,8 +67,6 @@ var LozengeAction = function LozengeAction(_ref) {
69
67
  errorMessage = _useState12[0],
70
68
  setErrorMessage = _useState12[1];
71
69
  var reload = useResolve();
72
- //TODO EDM-6583 Replace usage of useFlexibleUiAnalyticsContext with linking platform analytics context from find team.
73
- var analytics = useFlexibleUiAnalyticsContext();
74
70
  var invoke = useInvoke();
75
71
  var _useAnalyticsEvents = useAnalyticsEvents(),
76
72
  fireEvent = _useAnalyticsEvents.fireEvent;
@@ -95,11 +91,7 @@ var LozengeAction = function LozengeAction(_ref) {
95
91
  _context.next = 24;
96
92
  break;
97
93
  }
98
- if (fg('platform_migrate-some-ui-events-smart-card')) {
99
- fireEvent('ui.button.clicked.smartLinkStatusLozenge', {});
100
- } else {
101
- analytics === null || analytics === void 0 || analytics.ui.smartLinkLozengeActionClickedEvent();
102
- }
94
+ fireEvent('ui.button.clicked.smartLinkStatusLozenge', {});
103
95
  fireEvent('track.smartLinkQuickAction.started', {
104
96
  smartLinkActionType: TrackQuickActionType.StatusUpdate
105
97
  });
@@ -146,7 +138,7 @@ var LozengeAction = function LozengeAction(_ref) {
146
138
  return function (_x) {
147
139
  return _ref3.apply(this, arguments);
148
140
  };
149
- }(), [action.read, analytics, invoke, isLoaded, text, fireEvent]);
141
+ }(), [action.read, invoke, isLoaded, text, fireEvent]);
150
142
  var trigger = useCallback(function (props) {
151
143
  return jsx(LozengeActionTrigger, _extends({}, props, {
152
144
  appearance: selected.appearance,
@@ -162,11 +154,7 @@ var LozengeAction = function LozengeAction(_ref) {
162
154
  while (1) switch (_context2.prev = _context2.next) {
163
155
  case 0:
164
156
  _context2.prev = 0;
165
- if (fg('platform_migrate-some-ui-events-smart-card')) {
166
- fireEvent('ui.button.clicked.smartLinkStatusListItem', {});
167
- } else {
168
- analytics === null || analytics === void 0 || analytics.ui.smartLinkLozengeActionListItemClickedEvent();
169
- }
157
+ fireEvent('ui.button.clicked.smartLinkStatusListItem', {});
170
158
  updateAction = action === null || action === void 0 ? void 0 : action.update;
171
159
  if (!(updateAction && id)) {
172
160
  _context2.next = 17;
@@ -217,7 +205,7 @@ var LozengeAction = function LozengeAction(_ref) {
217
205
  return function (_x2, _x3, _x4) {
218
206
  return _ref4.apply(this, arguments);
219
207
  };
220
- }(), [action === null || action === void 0 ? void 0 : action.update, analytics, invoke, linkId, reload, url, fireEvent]);
208
+ }(), [action === null || action === void 0 ? void 0 : action.update, invoke, linkId, reload, url, fireEvent]);
221
209
  var dropdownItemGroup = useMemo(function () {
222
210
  if (errorMessage) {
223
211
  return jsx(LozengeActionError, {
@@ -43,11 +43,7 @@ var LozengeActionError = function LozengeActionError(_ref) {
43
43
  }, [reload, url]);
44
44
  var handlePreviewOpen = useCallback(function () {
45
45
  if (isPreviewAvailable) {
46
- if (fg('platform_migrate-some-ui-events-smart-card')) {
47
- fireEvent('ui.button.clicked.smartLinkStatusOpenPreview', {});
48
- } else {
49
- analytics === null || analytics === void 0 || analytics.ui.smartLinkLozengeActionErrorOpenPreviewClickedEvent();
50
- }
46
+ fireEvent('ui.button.clicked.smartLinkStatusOpenPreview', {});
51
47
  if (fg('platform-smart-card-migrate-embed-modal-analytics')) {
52
48
  invokePreviewAction && invoke(invokePreviewAction);
53
49
  } else {
@@ -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)