@atlaskit/smart-card 46.1.12 → 46.1.14

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 (139) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/common/ui/icons/blog-icon.js +0 -3
  3. package/dist/cjs/common/ui/icons/live-document-icon.js +0 -3
  4. package/dist/cjs/common/ui/icons/transform-smart-link-size-to-icon-tile-size.js +3 -16
  5. package/dist/cjs/extractors/common/icon/extractIcon.js +9 -19
  6. package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +2 -4
  7. package/dist/cjs/extractors/common/icon/extractIconFromTask.js +10 -15
  8. package/dist/cjs/extractors/flexible/icon/extract-document-type-icon.js +14 -37
  9. package/dist/cjs/extractors/flexible/icon/extract-file-formatIcon.js +1 -4
  10. package/dist/cjs/extractors/flexible/icon/extract-jira-task-icon.js +15 -40
  11. package/dist/cjs/extractors/flexible/icon/extract-jsonld-data-icon.js +48 -127
  12. package/dist/cjs/extractors/inline/index.js +7 -11
  13. package/dist/cjs/utils/analytics/analytics.js +1 -1
  14. package/dist/cjs/utils/get-icon-for-file-type.js +7 -20
  15. package/dist/cjs/utils/get-lazy-icons.js +10 -31
  16. package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +5 -13
  17. package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +15 -23
  18. package/dist/cjs/view/FlexibleCard/components/elements/link-icon-element/index.js +10 -25
  19. package/dist/cjs/view/LinkUrl/index.js +1 -1
  20. package/dist/cjs/view/common/image-icon/index.js +2 -14
  21. package/dist/es2019/common/ui/icons/blog-icon.js +0 -3
  22. package/dist/es2019/common/ui/icons/live-document-icon.js +0 -3
  23. package/dist/es2019/common/ui/icons/transform-smart-link-size-to-icon-tile-size.js +3 -16
  24. package/dist/es2019/extractors/common/icon/extractIcon.js +7 -13
  25. package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +2 -4
  26. package/dist/es2019/extractors/common/icon/extractIconFromTask.js +10 -13
  27. package/dist/es2019/extractors/flexible/icon/extract-document-type-icon.js +13 -36
  28. package/dist/es2019/extractors/flexible/icon/extract-file-formatIcon.js +2 -5
  29. package/dist/es2019/extractors/flexible/icon/extract-jira-task-icon.js +14 -39
  30. package/dist/es2019/extractors/flexible/icon/extract-jsonld-data-icon.js +46 -131
  31. package/dist/es2019/extractors/inline/index.js +7 -11
  32. package/dist/es2019/utils/analytics/analytics.js +1 -1
  33. package/dist/es2019/utils/get-icon-for-file-type.js +7 -20
  34. package/dist/es2019/utils/get-lazy-icons.js +20 -21
  35. package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +5 -12
  36. package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +15 -24
  37. package/dist/es2019/view/FlexibleCard/components/elements/link-icon-element/index.js +9 -24
  38. package/dist/es2019/view/LinkUrl/index.js +1 -1
  39. package/dist/es2019/view/common/image-icon/index.js +2 -15
  40. package/dist/esm/common/ui/icons/blog-icon.js +0 -3
  41. package/dist/esm/common/ui/icons/live-document-icon.js +0 -3
  42. package/dist/esm/common/ui/icons/transform-smart-link-size-to-icon-tile-size.js +3 -16
  43. package/dist/esm/extractors/common/icon/extractIcon.js +9 -19
  44. package/dist/esm/extractors/common/icon/extractIconFromDocument.js +2 -4
  45. package/dist/esm/extractors/common/icon/extractIconFromTask.js +10 -15
  46. package/dist/esm/extractors/flexible/icon/extract-document-type-icon.js +14 -37
  47. package/dist/esm/extractors/flexible/icon/extract-file-formatIcon.js +1 -4
  48. package/dist/esm/extractors/flexible/icon/extract-jira-task-icon.js +15 -40
  49. package/dist/esm/extractors/flexible/icon/extract-jsonld-data-icon.js +48 -127
  50. package/dist/esm/extractors/inline/index.js +7 -11
  51. package/dist/esm/utils/analytics/analytics.js +1 -1
  52. package/dist/esm/utils/get-icon-for-file-type.js +7 -20
  53. package/dist/esm/utils/get-lazy-icons.js +20 -21
  54. package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +5 -13
  55. package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +15 -24
  56. package/dist/esm/view/FlexibleCard/components/elements/link-icon-element/index.js +9 -24
  57. package/dist/esm/view/LinkUrl/index.js +1 -1
  58. package/dist/esm/view/common/image-icon/index.js +2 -14
  59. package/dist/types/extractors/common/icon/extractIcon.d.ts +0 -1
  60. package/dist/types/extractors/flexible/icon/extract-document-type-icon.d.ts +1 -3
  61. package/dist/types/extractors/flexible/icon/extract-jira-task-icon.d.ts +1 -1
  62. package/package.json +3 -15
  63. package/dist/cjs/common/ui/icons/priority-blocker-icon.compiled.css +0 -5
  64. package/dist/cjs/common/ui/icons/priority-blocker-icon.js +0 -50
  65. package/dist/cjs/common/ui/icons/priority-critical-icon.compiled.css +0 -5
  66. package/dist/cjs/common/ui/icons/priority-critical-icon.js +0 -50
  67. package/dist/cjs/common/ui/icons/priority-high-icon.compiled.css +0 -5
  68. package/dist/cjs/common/ui/icons/priority-high-icon.js +0 -50
  69. package/dist/cjs/common/ui/icons/priority-highest-icon.compiled.css +0 -5
  70. package/dist/cjs/common/ui/icons/priority-highest-icon.js +0 -56
  71. package/dist/cjs/common/ui/icons/priority-icon.compiled.css +0 -4
  72. package/dist/cjs/common/ui/icons/priority-icon.js +0 -49
  73. package/dist/cjs/common/ui/icons/priority-low-icon.compiled.css +0 -5
  74. package/dist/cjs/common/ui/icons/priority-low-icon.js +0 -50
  75. package/dist/cjs/common/ui/icons/priority-lowest-icon.compiled.css +0 -5
  76. package/dist/cjs/common/ui/icons/priority-lowest-icon.js +0 -56
  77. package/dist/cjs/common/ui/icons/priority-major-icon.compiled.css +0 -5
  78. package/dist/cjs/common/ui/icons/priority-major-icon.js +0 -62
  79. package/dist/cjs/common/ui/icons/priority-medium-icon.compiled.css +0 -5
  80. package/dist/cjs/common/ui/icons/priority-medium-icon.js +0 -50
  81. package/dist/cjs/common/ui/icons/priority-minor-icon.compiled.css +0 -5
  82. package/dist/cjs/common/ui/icons/priority-minor-icon.js +0 -62
  83. package/dist/cjs/common/ui/icons/priority-trivial-icon.compiled.css +0 -5
  84. package/dist/cjs/common/ui/icons/priority-trivial-icon.js +0 -50
  85. package/dist/es2019/common/ui/icons/priority-blocker-icon.compiled.css +0 -5
  86. package/dist/es2019/common/ui/icons/priority-blocker-icon.js +0 -38
  87. package/dist/es2019/common/ui/icons/priority-critical-icon.compiled.css +0 -5
  88. package/dist/es2019/common/ui/icons/priority-critical-icon.js +0 -38
  89. package/dist/es2019/common/ui/icons/priority-high-icon.compiled.css +0 -5
  90. package/dist/es2019/common/ui/icons/priority-high-icon.js +0 -38
  91. package/dist/es2019/common/ui/icons/priority-highest-icon.compiled.css +0 -5
  92. package/dist/es2019/common/ui/icons/priority-highest-icon.js +0 -44
  93. package/dist/es2019/common/ui/icons/priority-icon.compiled.css +0 -4
  94. package/dist/es2019/common/ui/icons/priority-icon.js +0 -35
  95. package/dist/es2019/common/ui/icons/priority-low-icon.compiled.css +0 -5
  96. package/dist/es2019/common/ui/icons/priority-low-icon.js +0 -38
  97. package/dist/es2019/common/ui/icons/priority-lowest-icon.compiled.css +0 -5
  98. package/dist/es2019/common/ui/icons/priority-lowest-icon.js +0 -44
  99. package/dist/es2019/common/ui/icons/priority-major-icon.compiled.css +0 -5
  100. package/dist/es2019/common/ui/icons/priority-major-icon.js +0 -50
  101. package/dist/es2019/common/ui/icons/priority-medium-icon.compiled.css +0 -5
  102. package/dist/es2019/common/ui/icons/priority-medium-icon.js +0 -38
  103. package/dist/es2019/common/ui/icons/priority-minor-icon.compiled.css +0 -5
  104. package/dist/es2019/common/ui/icons/priority-minor-icon.js +0 -50
  105. package/dist/es2019/common/ui/icons/priority-trivial-icon.compiled.css +0 -5
  106. package/dist/es2019/common/ui/icons/priority-trivial-icon.js +0 -38
  107. package/dist/esm/common/ui/icons/priority-blocker-icon.compiled.css +0 -5
  108. package/dist/esm/common/ui/icons/priority-blocker-icon.js +0 -41
  109. package/dist/esm/common/ui/icons/priority-critical-icon.compiled.css +0 -5
  110. package/dist/esm/common/ui/icons/priority-critical-icon.js +0 -41
  111. package/dist/esm/common/ui/icons/priority-high-icon.compiled.css +0 -5
  112. package/dist/esm/common/ui/icons/priority-high-icon.js +0 -41
  113. package/dist/esm/common/ui/icons/priority-highest-icon.compiled.css +0 -5
  114. package/dist/esm/common/ui/icons/priority-highest-icon.js +0 -47
  115. package/dist/esm/common/ui/icons/priority-icon.compiled.css +0 -4
  116. package/dist/esm/common/ui/icons/priority-icon.js +0 -40
  117. package/dist/esm/common/ui/icons/priority-low-icon.compiled.css +0 -5
  118. package/dist/esm/common/ui/icons/priority-low-icon.js +0 -41
  119. package/dist/esm/common/ui/icons/priority-lowest-icon.compiled.css +0 -5
  120. package/dist/esm/common/ui/icons/priority-lowest-icon.js +0 -47
  121. package/dist/esm/common/ui/icons/priority-major-icon.compiled.css +0 -5
  122. package/dist/esm/common/ui/icons/priority-major-icon.js +0 -53
  123. package/dist/esm/common/ui/icons/priority-medium-icon.compiled.css +0 -5
  124. package/dist/esm/common/ui/icons/priority-medium-icon.js +0 -41
  125. package/dist/esm/common/ui/icons/priority-minor-icon.compiled.css +0 -5
  126. package/dist/esm/common/ui/icons/priority-minor-icon.js +0 -53
  127. package/dist/esm/common/ui/icons/priority-trivial-icon.compiled.css +0 -5
  128. package/dist/esm/common/ui/icons/priority-trivial-icon.js +0 -41
  129. package/dist/types/common/ui/icons/priority-blocker-icon.d.ts +0 -13
  130. package/dist/types/common/ui/icons/priority-critical-icon.d.ts +0 -13
  131. package/dist/types/common/ui/icons/priority-high-icon.d.ts +0 -13
  132. package/dist/types/common/ui/icons/priority-highest-icon.d.ts +0 -13
  133. package/dist/types/common/ui/icons/priority-icon.d.ts +0 -13
  134. package/dist/types/common/ui/icons/priority-low-icon.d.ts +0 -13
  135. package/dist/types/common/ui/icons/priority-lowest-icon.d.ts +0 -13
  136. package/dist/types/common/ui/icons/priority-major-icon.d.ts +0 -13
  137. package/dist/types/common/ui/icons/priority-medium-icon.d.ts +0 -13
  138. package/dist/types/common/ui/icons/priority-minor-icon.d.ts +0 -13
  139. package/dist/types/common/ui/icons/priority-trivial-icon.d.ts +0 -13
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _extractTitle = require("@atlaskit/link-extractors/extract-title");
9
- var _fg = require("@atlaskit/platform-feature-flags/fg");
10
8
  var _constants = require("../../../constants");
11
9
  var _prioritiseIcon = require("../../common/icon/prioritiseIcon");
12
10
  var _priority = require("../../common/icon/priority");
@@ -17,25 +15,11 @@ var _extractFileFormatIcon = _interopRequireDefault(require("./extract-file-form
17
15
  var _extractJiraTaskIcon = _interopRequireDefault(require("./extract-jira-task-icon"));
18
16
  var _extractProviderIcon = _interopRequireDefault(require("./extract-provider-icon"));
19
17
  var _extractUrlIcon = _interopRequireDefault(require("./extract-url-icon"));
20
- var extractTask = function extractTask(data, label) {
18
+ var extractTask = function extractTask(data) {
21
19
  var _ref = (0, _extractTaskType.extractTaskType)(data) || {},
22
20
  id = _ref.id,
23
- url = _ref.icon;
24
- var taskType = id === null || id === void 0 ? void 0 : id.split('#').pop();
25
- var taskIcon = url ? {
26
- label: label,
27
- url: url
28
- } : undefined;
29
- return {
30
- taskType: taskType,
31
- taskIcon: taskIcon
32
- };
33
- };
34
- var extractTaskNew = function extractTaskNew(data) {
35
- var taskTypeInfo = (0, _extractTaskType.extractTaskType)(data) || {};
36
- var id = taskTypeInfo.id,
37
- url = taskTypeInfo.icon,
38
- name = taskTypeInfo.name;
21
+ url = _ref.icon,
22
+ name = _ref.name;
39
23
  var taskType = id === null || id === void 0 ? void 0 : id.split('#').pop();
40
24
  var taskIconLabel = (name === null || name === void 0 ? void 0 : name.trim()) || 'Task';
41
25
  var taskIcon = url ? {
@@ -58,113 +42,64 @@ var isJiraProvider = function isJiraProvider(provider) {
58
42
  };
59
43
  function chooseIcon(_ref2) {
60
44
  var _data$generator;
61
- var urlIcon = _ref2.urlIcon,
62
- type = _ref2.type,
63
- label = _ref2.label,
45
+ var type = _ref2.type,
64
46
  data = _ref2.data,
65
47
  providerIcon = _ref2.providerIcon;
66
48
  var providerId = (_data$generator = data.generator) === null || _data$generator === void 0 ? void 0 : _data$generator['@id'];
67
49
  var fileFormat = data === null || data === void 0 ? void 0 : data['schema:fileFormat'];
68
50
  var fileFormatIcon = (0, _extractFileFormatIcon.default)(fileFormat);
69
- if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
70
- var iconDescriptor = typeToIconDescriptor({
71
- type: type,
72
- providerId: providerId,
73
- data: data
74
- });
75
- var documentTitle = (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? undefined : (0, _extractTitle.extractTitle)(data);
76
- var extractedDocumentTypeIcon = (0, _extractDocumentTypeIcon.default)(type, documentTitle, providerId);
77
- var documentTypeIcon = iconDescriptor || extractedDocumentTypeIcon;
78
- var urlIconNew = (0, _extractUrlIcon.default)(data.icon, documentTypeIcon === null || documentTypeIcon === void 0 ? void 0 : documentTypeIcon.label);
79
- return (0, _prioritiseIcon.prioritiseIcon)({
80
- fileFormatIcon: fileFormatIcon,
81
- documentTypeIcon: documentTypeIcon,
82
- urlIcon: urlIconNew,
83
- providerIcon: providerIcon
84
- });
85
- } else {
86
- var _documentTypeIcon = typeToIconDescriptor({
87
- type: type,
88
- label: label,
89
- providerId: providerId,
90
- data: data
91
- }) || (0, _extractDocumentTypeIcon.default)(type, label, providerId);
92
- return (0, _prioritiseIcon.prioritiseIcon)({
93
- fileFormatIcon: fileFormatIcon,
94
- documentTypeIcon: _documentTypeIcon,
95
- urlIcon: urlIcon,
96
- providerIcon: providerIcon
97
- });
98
- }
51
+ var iconDescriptor = typeToIconDescriptor({
52
+ type: type,
53
+ providerId: providerId,
54
+ data: data
55
+ });
56
+ var extractedDocumentTypeIcon = (0, _extractDocumentTypeIcon.default)(type, providerId);
57
+ var documentTypeIcon = iconDescriptor || extractedDocumentTypeIcon;
58
+ var urlIcon = (0, _extractUrlIcon.default)(data.icon, documentTypeIcon === null || documentTypeIcon === void 0 ? void 0 : documentTypeIcon.label);
59
+ return (0, _prioritiseIcon.prioritiseIcon)({
60
+ fileFormatIcon: fileFormatIcon,
61
+ documentTypeIcon: documentTypeIcon,
62
+ urlIcon: urlIcon,
63
+ providerIcon: providerIcon
64
+ });
99
65
  }
100
66
  function typeToIconDescriptor(_ref3) {
101
67
  var type = _ref3.type,
102
- label = _ref3.label,
103
68
  providerId = _ref3.providerId,
104
69
  data = _ref3.data;
105
- var descriptorLabel = function descriptorLabel(semantic) {
106
- return (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? semantic : label;
70
+ var getIconDescriptor = function getIconDescriptor(icon, label) {
71
+ return {
72
+ icon: icon,
73
+ label: label
74
+ };
107
75
  };
108
76
  switch (type) {
109
77
  case 'atlassian:Goal':
110
- return {
111
- icon: _constants.IconType.Task,
112
- label: descriptorLabel('goal')
113
- };
78
+ return getIconDescriptor(_constants.IconType.Task, 'goal');
114
79
  case 'atlassian:Project':
115
- return {
116
- // FIXME: atlassian:Project seem to be returned for many things, including Confluence space or Trello board,
117
- // But `IconType.Project` actual value is `BitBucket:Project`!
118
- icon: _constants.IconType.Project,
119
- label: descriptorLabel('project')
120
- };
80
+ // FIXME: atlassian:Project seem to be returned for many things, including Confluence space or Trello board,
81
+ // But `IconType.Project` actual value is `BitBucket:Project`!
82
+ return getIconDescriptor(_constants.IconType.Project, 'project');
121
83
  case 'atlassian:SourceCodeCommit':
122
- return {
123
- icon: _constants.IconType.Commit,
124
- label: descriptorLabel('commit')
125
- };
84
+ return getIconDescriptor(_constants.IconType.Commit, 'commit');
126
85
  case 'atlassian:SourceCodePullRequest':
127
- return {
128
- icon: _constants.IconType.PullRequest,
129
- label: descriptorLabel('pull request')
130
- };
86
+ return getIconDescriptor(_constants.IconType.PullRequest, 'pull request');
131
87
  case 'atlassian:SourceCodeReference':
132
- return {
133
- icon: _constants.IconType.Branch,
134
- label: descriptorLabel('branch')
135
- };
88
+ return getIconDescriptor(_constants.IconType.Branch, 'branch');
136
89
  case 'atlassian:SourceCodeRepository':
137
- return {
138
- icon: _constants.IconType.Repo,
139
- label: descriptorLabel('repository')
140
- };
90
+ return getIconDescriptor(_constants.IconType.Repo, 'repository');
141
91
  case 'atlassian:Task':
142
- if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
143
- var taskIconDescriptor = {
144
- icon: _constants.IconType.Task,
145
- label: descriptorLabel('task')
146
- };
147
- if (isJiraProvider(providerId)) {
148
- var _extractTaskNew = extractTaskNew(data),
149
- taskType = _extractTaskNew.taskType,
150
- taskIcon = _extractTaskNew.taskIcon;
151
- return taskType === 'JiraCustomTaskType' ? taskIcon || taskIconDescriptor : (0, _extractJiraTaskIcon.default)(taskType);
152
- }
153
- return taskIconDescriptor;
154
- } else {
155
- var taskLabel = label || 'Task';
156
- var _taskIconDescriptor = {
157
- icon: _constants.IconType.Task,
158
- label: taskLabel
159
- };
160
- if (isJiraProvider(providerId)) {
161
- var _extractTask = extractTask(data),
162
- _taskType = _extractTask.taskType,
163
- _taskIcon = _extractTask.taskIcon;
164
- return _taskType === 'JiraCustomTaskType' ? _taskIcon || _taskIconDescriptor : (0, _extractJiraTaskIcon.default)(_taskType, taskLabel);
165
- }
166
- return _taskIconDescriptor;
92
+ var taskIconDescriptor = {
93
+ icon: _constants.IconType.Task,
94
+ label: 'task'
95
+ };
96
+ if (isJiraProvider(providerId)) {
97
+ var _extractTask = extractTask(data),
98
+ taskType = _extractTask.taskType,
99
+ taskIcon = _extractTask.taskIcon;
100
+ return taskType === 'JiraCustomTaskType' ? taskIcon || taskIconDescriptor : (0, _extractJiraTaskIcon.default)(taskType);
167
101
  }
102
+ return taskIconDescriptor;
168
103
  default:
169
104
  return undefined;
170
105
  }
@@ -174,26 +109,12 @@ function typeToIconDescriptor(_ref3) {
174
109
  * Return the icon object given a JSON-LD data object.
175
110
  */
176
111
  var extractJsonldDataIcon = function extractJsonldDataIcon(data) {
177
- if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
178
- var type = extractType(data);
179
- var providerIcon = (0, _extractProviderIcon.default)(data);
180
- return chooseIcon({
181
- type: type,
182
- data: data,
183
- providerIcon: providerIcon
184
- });
185
- } else {
186
- var label = (0, _extractTitle.extractTitle)(data);
187
- var _type = extractType(data);
188
- var urlIcon = (0, _extractUrlIcon.default)(data.icon, label);
189
- var _providerIcon = (0, _extractProviderIcon.default)(data);
190
- return chooseIcon({
191
- urlIcon: urlIcon,
192
- providerIcon: _providerIcon,
193
- type: _type,
194
- label: label,
195
- data: data
196
- });
197
- }
112
+ var type = extractType(data);
113
+ var providerIcon = (0, _extractProviderIcon.default)(data);
114
+ return chooseIcon({
115
+ type: type,
116
+ data: data,
117
+ providerIcon: providerIcon
118
+ });
198
119
  };
199
120
  var _default = exports.default = extractJsonldDataIcon;
@@ -13,7 +13,6 @@ var _extractSmartLinkUrl = require("@atlaskit/link-extractors/extract-smart-link
13
13
  var _extractType = require("@atlaskit/link-extractors/extract-type");
14
14
  var _isEntityPresent = require("@atlaskit/link-extractors/is-entity-present");
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
- var _fg = require("@atlaskit/platform-feature-flags/fg");
17
16
  var _getEmptyJsonLd = require("../../utils/get-empty-json-ld");
18
17
  var _extractIcon = require("../common/icon/extractIcon");
19
18
  var _extractLozenge = require("../common/lozenge/extractLozenge");
@@ -26,18 +25,15 @@ var extractInlineIcon = function extractInlineIcon(jsonLd) {
26
25
  var provider = (0, _extractProvider.extractProvider)(jsonLd);
27
26
  if (provider && provider.id) {
28
27
  if (provider.id === _constants.CONFLUENCE_GENERATOR_ID || provider.id === _constants.JIRA_GENERATOR_ID) {
29
- if ((0, _fg.fg)('platform_navx_jira_issue_type_icon_label_a11y')) {
30
- var icon = (0, _extractIcon.extractIcon)(jsonLd, 'type', showIconLabel);
31
- if (provider.id === _constants.JIRA_GENERATOR_ID && typeof icon === 'string') {
32
- var _extractTaskType;
33
- var taskTypeLabel = (_extractTaskType = (0, _extractTaskType2.extractTaskType)(jsonLd)) === null || _extractTaskType === void 0 || (_extractTaskType = _extractTaskType.name) === null || _extractTaskType === void 0 ? void 0 : _extractTaskType.trim();
34
- if (taskTypeLabel) {
35
- return [icon, taskTypeLabel];
36
- }
28
+ var icon = (0, _extractIcon.extractIcon)(jsonLd, 'type', showIconLabel);
29
+ if (provider.id === _constants.JIRA_GENERATOR_ID && typeof icon === 'string') {
30
+ var _extractTaskType;
31
+ var taskTypeLabel = (_extractTaskType = (0, _extractTaskType2.extractTaskType)(jsonLd)) === null || _extractTaskType === void 0 || (_extractTaskType = _extractTaskType.name) === null || _extractTaskType === void 0 ? void 0 : _extractTaskType.trim();
32
+ if (taskTypeLabel) {
33
+ return [icon, taskTypeLabel];
37
34
  }
38
- return icon;
39
35
  }
40
- return (0, _extractIcon.extractIcon)(jsonLd, 'type', showIconLabel);
36
+ return icon;
41
37
  }
42
38
  }
43
39
  return (0, _extractIcon.extractIcon)(jsonLd, 'provider', showIconLabel);
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
25
25
  var context = exports.context = {
26
26
  componentName: 'smart-cards',
27
27
  packageName: "@atlaskit/smart-card" || '',
28
- packageVersion: "46.1.11" || ''
28
+ packageVersion: "46.1.13" || ''
29
29
  };
30
30
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
31
31
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -8,22 +8,16 @@ exports.getIconForFileType = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _reactLoadable = _interopRequireDefault(require("react-loadable"));
11
- var _fg = require("@atlaskit/platform-feature-flags/fg");
12
11
  var _extractFileFormatIcon = _interopRequireDefault(require("../extractors/flexible/icon/extract-file-formatIcon"));
13
12
  var _getLazyIcons = require("./get-lazy-icons");
14
13
  var getTypeToIconMap = function getTypeToIconMap(fileFormat) {
14
+ var _lazyIcons$iconDescri, _iconDescriptor$label;
15
15
  var iconDescriptor = (0, _extractFileFormatIcon.default)(fileFormat);
16
16
  if (!(iconDescriptor !== null && iconDescriptor !== void 0 && iconDescriptor.icon)) {
17
17
  return null;
18
18
  }
19
19
  var lazyIcons = (0, _getLazyIcons.getLazyIcons)();
20
- if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
21
- var _lazyIcons$iconDescri, _iconDescriptor$label;
22
- return [(_lazyIcons$iconDescri = lazyIcons[iconDescriptor.icon]) === null || _lazyIcons$iconDescri === void 0 ? void 0 : _lazyIcons$iconDescri.default, (_iconDescriptor$label = iconDescriptor.label) !== null && _iconDescriptor$label !== void 0 ? _iconDescriptor$label : ''];
23
- } else {
24
- var _lazyIcons$iconDescri2;
25
- return [(_lazyIcons$iconDescri2 = lazyIcons[iconDescriptor.icon]) === null || _lazyIcons$iconDescri2 === void 0 ? void 0 : _lazyIcons$iconDescri2.default];
26
- }
20
+ return [(_lazyIcons$iconDescri = lazyIcons[iconDescriptor.icon]) === null || _lazyIcons$iconDescri === void 0 ? void 0 : _lazyIcons$iconDescri.default, (_iconDescriptor$label = iconDescriptor.label) !== null && _iconDescriptor$label !== void 0 ? _iconDescriptor$label : ''];
27
21
  };
28
22
  var getIconForFileType = exports.getIconForFileType = function getIconForFileType(fileMimeType, showIconLabel) {
29
23
  if (!fileMimeType) {
@@ -49,16 +43,9 @@ var getIconForFileType = exports.getIconForFileType = function getIconForFileTyp
49
43
  }
50
44
  }); // because we're using dynamic loading here, TS will not be able to infer the type
51
45
 
52
- if ((0, _fg.fg)('platform_navx_smart_link_icon_label_a11y')) {
53
- var descriptorLabel = icon[1] || ''; // NAVX-4354: Combine into const [importCb] = icon; above
54
- var label = (showIconLabel !== null && showIconLabel !== void 0 ? showIconLabel : true) ? descriptorLabel : '';
55
- return /*#__PURE__*/_react.default.createElement(Icon, {
56
- testId: "document-file-format-icon",
57
- label: label
58
- });
59
- } else {
60
- return /*#__PURE__*/_react.default.createElement(Icon, {
61
- testId: "document-file-format-icon"
62
- });
63
- }
46
+ var label = (showIconLabel !== null && showIconLabel !== void 0 ? showIconLabel : true) ? icon[1] || '' : '';
47
+ return /*#__PURE__*/_react.default.createElement(Icon, {
48
+ testId: "document-file-format-icon",
49
+ label: label
50
+ });
64
51
  };
@@ -9,7 +9,6 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var _react = _interopRequireDefault(require("react"));
12
- var _fg = require("@atlaskit/platform-feature-flags/fg");
13
12
  var _constants = require("../constants");
14
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
14
  var loadPriorityIcons = function loadPriorityIcons() {
@@ -580,112 +579,92 @@ var getLazyIcons = exports.getLazyIcons = function getLazyIcons() {
580
579
  }
581
580
  }), _constants.IconType.PriorityBlocker, {
582
581
  default: function _default() {
583
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref3) {
582
+ return loadPriorityIcons().then(function (_ref3) {
584
583
  var defaultIcon = _ref3.PriorityBlockerIcon;
585
584
  return {
586
585
  default: defaultIcon
587
586
  };
588
- }) : Promise.resolve().then(function () {
589
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphBlocker" */'../common/ui/icons/priority-blocker-icon'));
590
587
  });
591
588
  }
592
589
  }), _constants.IconType.PriorityCritical, {
593
590
  default: function _default() {
594
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref4) {
591
+ return loadPriorityIcons().then(function (_ref4) {
595
592
  var defaultIcon = _ref4.PriorityCriticalIcon;
596
593
  return {
597
594
  default: defaultIcon
598
595
  };
599
- }) : Promise.resolve().then(function () {
600
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphCritical" */'../common/ui/icons/priority-critical-icon'));
601
596
  });
602
597
  }
603
598
  }), _constants.IconType.PriorityHigh, {
604
599
  default: function _default() {
605
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref5) {
600
+ return loadPriorityIcons().then(function (_ref5) {
606
601
  var defaultIcon = _ref5.PriorityHighIcon;
607
602
  return {
608
603
  default: defaultIcon
609
604
  };
610
- }) : Promise.resolve().then(function () {
611
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphHigh" */'../common/ui/icons/priority-high-icon'));
612
605
  });
613
606
  }
614
607
  }), _constants.IconType.PriorityHighest, {
615
608
  default: function _default() {
616
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref6) {
609
+ return loadPriorityIcons().then(function (_ref6) {
617
610
  var defaultIcon = _ref6.PriorityHighestIcon;
618
611
  return {
619
612
  default: defaultIcon
620
613
  };
621
- }) : Promise.resolve().then(function () {
622
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphHighest" */'../common/ui/icons/priority-highest-icon'));
623
614
  });
624
615
  }
625
616
  }), _constants.IconType.PriorityLow, {
626
617
  default: function _default() {
627
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref7) {
618
+ return loadPriorityIcons().then(function (_ref7) {
628
619
  var defaultIcon = _ref7.PriorityLowIcon;
629
620
  return {
630
621
  default: defaultIcon
631
622
  };
632
- }) : Promise.resolve().then(function () {
633
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphLow" */'../common/ui/icons/priority-low-icon'));
634
623
  });
635
624
  }
636
625
  }), _constants.IconType.PriorityLowest, {
637
626
  default: function _default() {
638
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref8) {
627
+ return loadPriorityIcons().then(function (_ref8) {
639
628
  var defaultIcon = _ref8.PriorityLowestIcon;
640
629
  return {
641
630
  default: defaultIcon
642
631
  };
643
- }) : Promise.resolve().then(function () {
644
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphLowest" */'../common/ui/icons/priority-lowest-icon'));
645
632
  });
646
633
  }
647
634
  }), _constants.IconType.PriorityMajor, {
648
635
  default: function _default() {
649
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref9) {
636
+ return loadPriorityIcons().then(function (_ref9) {
650
637
  var defaultIcon = _ref9.PriorityMajorIcon;
651
638
  return {
652
639
  default: defaultIcon
653
640
  };
654
- }) : Promise.resolve().then(function () {
655
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphMajor" */'../common/ui/icons/priority-major-icon'));
656
641
  });
657
642
  }
658
643
  }), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_ref11, _constants.IconType.PriorityMedium, {
659
644
  default: function _default() {
660
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref0) {
645
+ return loadPriorityIcons().then(function (_ref0) {
661
646
  var defaultIcon = _ref0.PriorityMediumIcon;
662
647
  return {
663
648
  default: defaultIcon
664
649
  };
665
- }) : Promise.resolve().then(function () {
666
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphMedium" */'../common/ui/icons/priority-medium-icon'));
667
650
  });
668
651
  }
669
652
  }), _constants.IconType.PriorityMinor, {
670
653
  default: function _default() {
671
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref1) {
654
+ return loadPriorityIcons().then(function (_ref1) {
672
655
  var defaultIcon = _ref1.PriorityMinorIcon;
673
656
  return {
674
657
  default: defaultIcon
675
658
  };
676
- }) : Promise.resolve().then(function () {
677
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphMinor" */'../common/ui/icons/priority-minor-icon'));
678
659
  });
679
660
  }
680
661
  }), _constants.IconType.PriorityTrivial, {
681
662
  default: function _default() {
682
- return (0, _fg.fg)('platform_sl_priority_icon') ? loadPriorityIcons().then(function (_ref10) {
663
+ return loadPriorityIcons().then(function (_ref10) {
683
664
  var defaultIcon = _ref10.PriorityTrivialIcon;
684
665
  return {
685
666
  default: defaultIcon
686
667
  };
687
- }) : Promise.resolve().then(function () {
688
- return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_glyphTrivial" */'../common/ui/icons/priority-trivial-icon'));
689
668
  });
690
669
  }
691
670
  });
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
9
  var _react = _interopRequireDefault(require("react"));
11
10
  var _reactLoadable = _interopRequireDefault(require("react-loadable"));
12
11
  var _iconTile = _interopRequireDefault(require("@atlaskit/icon/icon-tile"));
@@ -46,7 +45,7 @@ var getLiveDocumentIcon = function getLiveDocumentIcon() {
46
45
  };
47
46
  var PRIORITY_ICONS = [_constants.IconType.PriorityBlocker, _constants.IconType.PriorityCritical, _constants.IconType.PriorityHigh, _constants.IconType.PriorityHighest, _constants.IconType.PriorityLow, _constants.IconType.PriorityLowest, _constants.IconType.PriorityMajor, _constants.IconType.PriorityMedium, _constants.IconType.PriorityMinor, _constants.IconType.PriorityTrivial];
48
47
  var isCoreIcon = function isCoreIcon(icon) {
49
- return [_constants.IconType.Project, _constants.IconType.Template, _constants.IconType.Forbidden, _constants.IconType.Default, _constants.IconType.Error, _constants.IconType.Attachment, _constants.IconType.CheckItem, _constants.IconType.Component, _constants.IconType.Comment, _constants.IconType.View, _constants.IconType.React, _constants.IconType.Vote, _constants.IconType.PriorityUndefined, _constants.IconType.ProgrammingLanguage, _constants.IconType.Subscriber, _constants.IconType.SubTasksProgress].concat((0, _toConsumableArray2.default)((0, _fg.fg)('platform_sl_priority_icon') ? PRIORITY_ICONS : [])).includes(icon);
48
+ return [_constants.IconType.Project, _constants.IconType.Template, _constants.IconType.Forbidden, _constants.IconType.Default, _constants.IconType.Error, _constants.IconType.Attachment, _constants.IconType.CheckItem, _constants.IconType.Component, _constants.IconType.Comment, _constants.IconType.View, _constants.IconType.React, _constants.IconType.Vote, _constants.IconType.PriorityUndefined, _constants.IconType.ProgrammingLanguage, _constants.IconType.Subscriber, _constants.IconType.SubTasksProgress].concat(PRIORITY_ICONS).includes(icon);
50
49
  };
51
50
  var AtlaskitIcon = function AtlaskitIcon(_ref) {
52
51
  var icon = _ref.icon,
@@ -95,7 +94,7 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
95
94
  return null;
96
95
  }
97
96
  var ImportedIcon = importIcon(importFn);
98
- if (isCoreIcon(icon) && (0, _fg.fg)('platform_sl_icons_refactor')) {
97
+ if (isCoreIcon(icon)) {
99
98
  var color;
100
99
  if (icon === _constants.IconType.Error || icon === _constants.IconType.Forbidden) {
101
100
  color = "var(--ds-icon-danger, #C9372C)";
@@ -110,7 +109,7 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
110
109
  });
111
110
  case _constants.SmartLinkSize.Large:
112
111
  case _constants.SmartLinkSize.XLarge:
113
- if (PRIORITY_ICONS.includes(icon) && (0, _fg.fg)('platform_sl_priority_icon')) {
112
+ if (PRIORITY_ICONS.includes(icon)) {
114
113
  return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
115
114
  label: label,
116
115
  testId: testId,
@@ -167,18 +166,11 @@ var AtlaskitIcon = function AtlaskitIcon(_ref) {
167
166
  }));
168
167
  case _constants.IconType.Error:
169
168
  case _constants.IconType.Forbidden:
170
- if ((0, _fg.fg)('platform_sl_icons_refactor')) {
171
- return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
172
- label: label,
173
- testId: testId,
174
- size: size,
175
- isTiledIcon: isTiledIcon
176
- });
177
- }
178
169
  return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
179
170
  label: label,
180
171
  testId: testId,
181
- color: "var(--ds-icon-danger, #C9372C)"
172
+ size: size,
173
+ isTiledIcon: isTiledIcon
182
174
  });
183
175
  default:
184
176
  return /*#__PURE__*/_react.default.createElement(ImportedIcon, {
@@ -1,4 +1,7 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v3.0.2 */
2
+ /* eslint-disable @compiled/shorthand-property-sorting */
3
+ /* eslint-disable @atlaskit/design-system/use-tokens-typography */
4
+ /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
2
5
  "use strict";
3
6
 
4
7
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -11,7 +14,6 @@ require("./index.compiled.css");
11
14
  var _react = _interopRequireWildcard(require("react"));
12
15
  var React = _react;
13
16
  var _runtime = require("@compiled/react/runtime");
14
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
17
  var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
16
18
  var _fg = require("@atlaskit/platform-feature-flags/fg");
17
19
  var _compiled = require("@atlaskit/primitives/compiled");
@@ -21,9 +23,6 @@ var _imageIcon = _interopRequireDefault(require("../../../../../common/image-ico
21
23
  var _atlaskitIcon = _interopRequireDefault(require("../../../common/atlaskit-icon"));
22
24
  var _getIconWidth = require("../../../getIconWidth");
23
25
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
24
- /* eslint-disable @compiled/shorthand-property-sorting */
25
- /* eslint-disable @atlaskit/design-system/use-tokens-typography */
26
- /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
27
26
  var styles = {
28
27
  container: "_1ul91ns9",
29
28
  iconWrapperStyle: "_1e0c1txw _4cvr1h6o _1bah1h6o"
@@ -43,18 +42,13 @@ var renderAtlaskitIcon = function renderAtlaskitIcon(icon, testId) {
43
42
  var label = arguments.length > 3 ? arguments[3] : undefined;
44
43
  var isTiledIcon = arguments.length > 4 ? arguments[4] : undefined;
45
44
  if (icon) {
46
- return /*#__PURE__*/React.createElement(_atlaskitIcon.default, (0, _extends2.default)({
45
+ return /*#__PURE__*/React.createElement(_atlaskitIcon.default, {
47
46
  icon: icon,
48
- testId: "".concat(testId, "-icon")
49
- }, (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? {
50
- label: label
51
- } : {
52
- 'aria-hidden': true,
53
- label: ''
54
- }, {
47
+ testId: "".concat(testId, "-icon"),
48
+ label: label,
55
49
  size: size,
56
50
  isTiledIcon: isTiledIcon
57
- }));
51
+ });
58
52
  }
59
53
  };
60
54
  var renderDefaultIcon = function renderDefaultIcon(label, testId) {
@@ -85,9 +79,8 @@ var renderImageIcon = function renderImageIcon(defaultIcon, url, testId) {
85
79
  var label = arguments.length > 6 ? arguments[6] : undefined;
86
80
  var width = size === _constants.SmartLinkSize.Large ? "var(--ds-space-300, 24px)" : "var(--ds-space-200, 16px)";
87
81
  if (url) {
88
- return /*#__PURE__*/React.createElement(_imageIcon.default, (0, _extends2.default)({}, (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? {
89
- label: label
90
- } : {}, {
82
+ return /*#__PURE__*/React.createElement(_imageIcon.default, {
83
+ label: label,
91
84
  defaultIcon: defaultIcon,
92
85
  testId: testId,
93
86
  url: url,
@@ -95,7 +88,7 @@ var renderImageIcon = function renderImageIcon(defaultIcon, url, testId) {
95
88
  height: width,
96
89
  appearance: appearance,
97
90
  hideLoadingSkeleton: hideLoadingSkeleton
98
- }));
91
+ });
99
92
  }
100
93
  };
101
94
  var renderImageIconNew = function renderImageIconNew(defaultIcon, url, testId) {
@@ -106,9 +99,8 @@ var renderImageIconNew = function renderImageIconNew(defaultIcon, url, testId) {
106
99
  var isTiledIcon = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
107
100
  var width = widthFromSize(size, isTiledIcon);
108
101
  if (url) {
109
- return /*#__PURE__*/React.createElement(_imageIcon.default, (0, _extends2.default)({}, (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? {
110
- label: label
111
- } : {}, {
102
+ return /*#__PURE__*/React.createElement(_imageIcon.default, {
103
+ label: label,
112
104
  defaultIcon: defaultIcon,
113
105
  testId: testId,
114
106
  url: url,
@@ -116,7 +108,7 @@ var renderImageIconNew = function renderImageIconNew(defaultIcon, url, testId) {
116
108
  height: width,
117
109
  appearance: appearance,
118
110
  hideLoadingSkeleton: hideLoadingSkeleton
119
- }));
111
+ });
120
112
  }
121
113
  };
122
114
 
@@ -144,10 +136,10 @@ var IconElement = function IconElement(_ref) {
144
136
  appearance = _ref$appearance === void 0 ? 'square' : _ref$appearance,
145
137
  hideLoadingSkeleton = _ref.hideLoadingSkeleton,
146
138
  isTiledIcon = _ref.isTiledIcon;
147
- var label = (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? labelProp !== null && labelProp !== void 0 ? labelProp : '' : labelProp !== null && labelProp !== void 0 ? labelProp : 'Link';
139
+ var label = labelProp !== null && labelProp !== void 0 ? labelProp : '';
148
140
  var element = (0, _react.useMemo)(function () {
149
141
  var defaultIcon = renderDefaultIcon(label, testId);
150
- return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || ((0, _fg.fg)('platform_sl_3p_preauth_better_hovercard_killswitch') ? renderImageIconNew(defaultIcon, url, testId, size, appearance, hideLoadingSkeleton, (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? label : undefined, isTiledIcon) : renderImageIcon(defaultIcon, url, testId, size, appearance, hideLoadingSkeleton, (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? label : undefined)) || renderAtlaskitIcon(icon, testId, size, (0, _fg.fg)('platform_navx_smart_link_icon_label_a11y') ? label : undefined, isTiledIcon) || defaultIcon;
142
+ return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || ((0, _fg.fg)('platform_sl_3p_preauth_better_hovercard_killswitch') ? renderImageIconNew(defaultIcon, url, testId, size, appearance, hideLoadingSkeleton, label, isTiledIcon) : renderImageIcon(defaultIcon, url, testId, size, appearance, hideLoadingSkeleton, label)) || renderAtlaskitIcon(icon, testId, size, label, isTiledIcon) || defaultIcon;
151
143
  }, [label, testId, overrideIcon, render, url, size, appearance, hideLoadingSkeleton, icon, isTiledIcon]);
152
144
  var width = (0, _getIconWidth.getIconWidth)(size);
153
145
  return /*#__PURE__*/React.createElement("div", {