@atlaskit/smart-card 45.17.16 → 45.17.17
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.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/extractors/inline/index.js +11 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/link-icon-element/index.js +11 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/inline/index.js +12 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/link-icon-element/index.js +11 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/inline/index.js +12 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/link-icon-element/index.js +11 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.17.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e95d9c522563d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e95d9c522563d) -
|
|
8
|
+
Use Jira issue subtype labels such as Bug, Task, Epic, or Question for inline, block, and hover
|
|
9
|
+
Smart Link icon accessible names instead of generic or empty labels.
|
|
10
|
+
|
|
11
|
+
All changes behind feature gate: `platform_navx_jira_issue_type_icon_label_a11y`.
|
|
12
|
+
|
|
3
13
|
## 45.17.16
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -19,6 +19,17 @@ var extractInlineIcon = function extractInlineIcon(jsonLd) {
|
|
|
19
19
|
var provider = (0, _linkExtractors.extractProvider)(jsonLd);
|
|
20
20
|
if (provider && provider.id) {
|
|
21
21
|
if (provider.id === _constants.CONFLUENCE_GENERATOR_ID || provider.id === _constants.JIRA_GENERATOR_ID) {
|
|
22
|
+
if ((0, _platformFeatureFlags.fg)('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
23
|
+
var icon = (0, _icon.extractIcon)(jsonLd, 'type', showIconLabel);
|
|
24
|
+
if (provider.id === _constants.JIRA_GENERATOR_ID && typeof icon === 'string') {
|
|
25
|
+
var _extractTaskType;
|
|
26
|
+
var taskTypeLabel = (_extractTaskType = (0, _lozenge.extractTaskType)(jsonLd)) === null || _extractTaskType === void 0 || (_extractTaskType = _extractTaskType.name) === null || _extractTaskType === void 0 ? void 0 : _extractTaskType.trim();
|
|
27
|
+
if (taskTypeLabel) {
|
|
28
|
+
return [icon, taskTypeLabel];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return icon;
|
|
32
|
+
}
|
|
22
33
|
return (0, _icon.extractIcon)(jsonLd, 'type', showIconLabel);
|
|
23
34
|
}
|
|
24
35
|
}
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card" || '',
|
|
14
|
-
packageVersion: "45.17.
|
|
14
|
+
packageVersion: "45.17.16" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -18,12 +18,21 @@ var LinkIconElement = function LinkIconElement(props) {
|
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
20
|
if ((0, _platformFeatureFlags.fg)('platform_navx_smart_link_icon_label_a11y')) {
|
|
21
|
-
var
|
|
21
|
+
var _ref3, _resourceTypeToLabel, _context$meta3, _linkIconProps$label3;
|
|
22
22
|
var linkIconProps = (0, _common.toLinkIconProps)(context === null || context === void 0 ? void 0 : context.linkIcon, context.type);
|
|
23
23
|
if (!linkIconProps) {
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
if ((0, _platformFeatureFlags.fg)('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
27
|
+
var _context$meta, _context$type, _linkIconProps$label, _ref, _ref2, _context$meta2, _linkIconProps$label2;
|
|
28
|
+
var jiraIssueTypeLabel = ((_context$meta = context.meta) === null || _context$meta === void 0 ? void 0 : _context$meta.resourceType) === 'issue' && (_context$type = context.type) !== null && _context$type !== void 0 && _context$type.includes('atlassian:Task') ? (_linkIconProps$label = linkIconProps.label) === null || _linkIconProps$label === void 0 ? void 0 : _linkIconProps$label.trim() : undefined;
|
|
29
|
+
var _label = (_ref = (_ref2 = jiraIssueTypeLabel !== null && jiraIssueTypeLabel !== void 0 ? jiraIssueTypeLabel : (0, _resourceTypeToLabel2.resourceTypeToLabel)((_context$meta2 = context.meta) === null || _context$meta2 === void 0 ? void 0 : _context$meta2.resourceType)) !== null && _ref2 !== void 0 ? _ref2 : (_linkIconProps$label2 = linkIconProps.label) === null || _linkIconProps$label2 === void 0 ? void 0 : _linkIconProps$label2.trim()) !== null && _ref !== void 0 ? _ref : props.label;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_common.BaseIconElement, (0, _extends2.default)({}, linkIconProps, props, {
|
|
31
|
+
label: _label,
|
|
32
|
+
name: _constants.ElementName.LinkIcon
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
var label = (_ref3 = (_resourceTypeToLabel = (0, _resourceTypeToLabel2.resourceTypeToLabel)((_context$meta3 = context.meta) === null || _context$meta3 === void 0 ? void 0 : _context$meta3.resourceType)) !== null && _resourceTypeToLabel !== void 0 ? _resourceTypeToLabel : (_linkIconProps$label3 = linkIconProps.label) === null || _linkIconProps$label3 === void 0 ? void 0 : _linkIconProps$label3.trim()) !== null && _ref3 !== void 0 ? _ref3 : props.label;
|
|
27
36
|
return /*#__PURE__*/_react.default.createElement(_common.BaseIconElement, (0, _extends2.default)({}, linkIconProps, props, {
|
|
28
37
|
label: label,
|
|
29
38
|
name: _constants.ElementName.LinkIcon
|
|
@@ -67,7 +67,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = function IconAndTitleLayou
|
|
|
67
67
|
hasImageErrored = _useState2[0],
|
|
68
68
|
setHasImageErrored = _useState2[1];
|
|
69
69
|
var renderAtlaskitIcon = _react.default.useCallback(function () {
|
|
70
|
-
if ((0, _platformFeatureFlags.fg)('platform_lp_use_entity_icon_url_for_icon')) {
|
|
70
|
+
if ((0, _platformFeatureFlags.fg)('platform_lp_use_entity_icon_url_for_icon') || Array.isArray(icon) && (0, _platformFeatureFlags.fg)('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
71
71
|
if (emoji) {
|
|
72
72
|
return emoji;
|
|
73
73
|
}
|
|
@@ -87,7 +87,7 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = function IconAndTitleLayou
|
|
|
87
87
|
}, [emoji, icon]);
|
|
88
88
|
var profileType = (0, _utils.isProfileType)(type);
|
|
89
89
|
var renderImageIcon = _react.default.useCallback(function (errored, testId) {
|
|
90
|
-
if ((0, _platformFeatureFlags.fg)('platform_lp_use_entity_icon_url_for_icon')) {
|
|
90
|
+
if ((0, _platformFeatureFlags.fg)('platform_lp_use_entity_icon_url_for_icon') || Array.isArray(icon) && (0, _platformFeatureFlags.fg)('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
91
91
|
if (!icon) {
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "45.17.
|
|
22
|
+
packageVersion: "45.17.16",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -4,7 +4,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
6
6
|
import { extractIcon } from '../common/icon';
|
|
7
|
-
import { extractLozenge } from '../common/lozenge';
|
|
7
|
+
import { extractLozenge, extractTaskType } from '../common/lozenge';
|
|
8
8
|
import { extractTitleTextColor } from '../common/primitives';
|
|
9
9
|
import { extractTitlePrefix } from '../common/title-prefix';
|
|
10
10
|
import { CONFLUENCE_GENERATOR_ID, JIRA_GENERATOR_ID } from '../constants';
|
|
@@ -12,6 +12,17 @@ const extractInlineIcon = (jsonLd, showIconLabel = true) => {
|
|
|
12
12
|
const provider = extractProvider(jsonLd);
|
|
13
13
|
if (provider && provider.id) {
|
|
14
14
|
if (provider.id === CONFLUENCE_GENERATOR_ID || provider.id === JIRA_GENERATOR_ID) {
|
|
15
|
+
if (fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
16
|
+
const icon = extractIcon(jsonLd, 'type', showIconLabel);
|
|
17
|
+
if (provider.id === JIRA_GENERATOR_ID && typeof icon === 'string') {
|
|
18
|
+
var _extractTaskType, _extractTaskType$name;
|
|
19
|
+
const taskTypeLabel = (_extractTaskType = extractTaskType(jsonLd)) === null || _extractTaskType === void 0 ? void 0 : (_extractTaskType$name = _extractTaskType.name) === null || _extractTaskType$name === void 0 ? void 0 : _extractTaskType$name.trim();
|
|
20
|
+
if (taskTypeLabel) {
|
|
21
|
+
return [icon, taskTypeLabel];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return icon;
|
|
25
|
+
}
|
|
15
26
|
return extractIcon(jsonLd, 'type', showIconLabel);
|
|
16
27
|
}
|
|
17
28
|
}
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card" || '',
|
|
5
|
-
packageVersion: "45.17.
|
|
5
|
+
packageVersion: "45.17.16" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -11,12 +11,21 @@ const LinkIconElement = props => {
|
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
13
|
if (fg('platform_navx_smart_link_icon_label_a11y')) {
|
|
14
|
-
var
|
|
14
|
+
var _ref3, _resourceTypeToLabel, _context$meta3, _linkIconProps$label3;
|
|
15
15
|
const linkIconProps = toLinkIconProps(context === null || context === void 0 ? void 0 : context.linkIcon, context.type);
|
|
16
16
|
if (!linkIconProps) {
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
if (fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
20
|
+
var _context$meta, _context$type, _linkIconProps$label, _ref, _ref2, _context$meta2, _linkIconProps$label2;
|
|
21
|
+
const jiraIssueTypeLabel = ((_context$meta = context.meta) === null || _context$meta === void 0 ? void 0 : _context$meta.resourceType) === 'issue' && (_context$type = context.type) !== null && _context$type !== void 0 && _context$type.includes('atlassian:Task') ? (_linkIconProps$label = linkIconProps.label) === null || _linkIconProps$label === void 0 ? void 0 : _linkIconProps$label.trim() : undefined;
|
|
22
|
+
const label = (_ref = (_ref2 = jiraIssueTypeLabel !== null && jiraIssueTypeLabel !== void 0 ? jiraIssueTypeLabel : resourceTypeToLabel((_context$meta2 = context.meta) === null || _context$meta2 === void 0 ? void 0 : _context$meta2.resourceType)) !== null && _ref2 !== void 0 ? _ref2 : (_linkIconProps$label2 = linkIconProps.label) === null || _linkIconProps$label2 === void 0 ? void 0 : _linkIconProps$label2.trim()) !== null && _ref !== void 0 ? _ref : props.label;
|
|
23
|
+
return /*#__PURE__*/React.createElement(BaseIconElement, _extends({}, linkIconProps, props, {
|
|
24
|
+
label: label,
|
|
25
|
+
name: ElementName.LinkIcon
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
const label = (_ref3 = (_resourceTypeToLabel = resourceTypeToLabel((_context$meta3 = context.meta) === null || _context$meta3 === void 0 ? void 0 : _context$meta3.resourceType)) !== null && _resourceTypeToLabel !== void 0 ? _resourceTypeToLabel : (_linkIconProps$label3 = linkIconProps.label) === null || _linkIconProps$label3 === void 0 ? void 0 : _linkIconProps$label3.trim()) !== null && _ref3 !== void 0 ? _ref3 : props.label;
|
|
20
29
|
return /*#__PURE__*/React.createElement(BaseIconElement, _extends({}, linkIconProps, props, {
|
|
21
30
|
label: label,
|
|
22
31
|
name: ElementName.LinkIcon
|
|
@@ -53,7 +53,7 @@ export const IconAndTitleLayout = ({
|
|
|
53
53
|
}) => {
|
|
54
54
|
const [hasImageErrored, setHasImageErrored] = useState(false);
|
|
55
55
|
const renderAtlaskitIcon = React.useCallback(() => {
|
|
56
|
-
if (fg('platform_lp_use_entity_icon_url_for_icon')) {
|
|
56
|
+
if (fg('platform_lp_use_entity_icon_url_for_icon') || Array.isArray(icon) && fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
57
57
|
if (emoji) {
|
|
58
58
|
return emoji;
|
|
59
59
|
}
|
|
@@ -73,7 +73,7 @@ export const IconAndTitleLayout = ({
|
|
|
73
73
|
}, [emoji, icon]);
|
|
74
74
|
const profileType = isProfileType(type);
|
|
75
75
|
const renderImageIcon = React.useCallback((errored, testId) => {
|
|
76
|
-
if (fg('platform_lp_use_entity_icon_url_for_icon')) {
|
|
76
|
+
if (fg('platform_lp_use_entity_icon_url_for_icon') || Array.isArray(icon) && fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
77
77
|
if (!icon) {
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "45.17.
|
|
12
|
+
packageVersion: "45.17.16",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -4,7 +4,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { getEmptyJsonLd } from '../../utils/jsonld';
|
|
6
6
|
import { extractIcon } from '../common/icon';
|
|
7
|
-
import { extractLozenge } from '../common/lozenge';
|
|
7
|
+
import { extractLozenge, extractTaskType } from '../common/lozenge';
|
|
8
8
|
import { extractTitleTextColor } from '../common/primitives';
|
|
9
9
|
import { extractTitlePrefix } from '../common/title-prefix';
|
|
10
10
|
import { CONFLUENCE_GENERATOR_ID, JIRA_GENERATOR_ID } from '../constants';
|
|
@@ -13,6 +13,17 @@ var extractInlineIcon = function extractInlineIcon(jsonLd) {
|
|
|
13
13
|
var provider = extractProvider(jsonLd);
|
|
14
14
|
if (provider && provider.id) {
|
|
15
15
|
if (provider.id === CONFLUENCE_GENERATOR_ID || provider.id === JIRA_GENERATOR_ID) {
|
|
16
|
+
if (fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
17
|
+
var icon = extractIcon(jsonLd, 'type', showIconLabel);
|
|
18
|
+
if (provider.id === JIRA_GENERATOR_ID && typeof icon === 'string') {
|
|
19
|
+
var _extractTaskType;
|
|
20
|
+
var taskTypeLabel = (_extractTaskType = extractTaskType(jsonLd)) === null || _extractTaskType === void 0 || (_extractTaskType = _extractTaskType.name) === null || _extractTaskType === void 0 ? void 0 : _extractTaskType.trim();
|
|
21
|
+
if (taskTypeLabel) {
|
|
22
|
+
return [icon, taskTypeLabel];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return icon;
|
|
26
|
+
}
|
|
16
27
|
return extractIcon(jsonLd, 'type', showIconLabel);
|
|
17
28
|
}
|
|
18
29
|
}
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "45.17.
|
|
7
|
+
packageVersion: "45.17.16" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -11,12 +11,21 @@ var LinkIconElement = function LinkIconElement(props) {
|
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
13
|
if (fg('platform_navx_smart_link_icon_label_a11y')) {
|
|
14
|
-
var
|
|
14
|
+
var _ref3, _resourceTypeToLabel, _context$meta3, _linkIconProps$label3;
|
|
15
15
|
var linkIconProps = toLinkIconProps(context === null || context === void 0 ? void 0 : context.linkIcon, context.type);
|
|
16
16
|
if (!linkIconProps) {
|
|
17
17
|
return null;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
if (fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
20
|
+
var _context$meta, _context$type, _linkIconProps$label, _ref, _ref2, _context$meta2, _linkIconProps$label2;
|
|
21
|
+
var jiraIssueTypeLabel = ((_context$meta = context.meta) === null || _context$meta === void 0 ? void 0 : _context$meta.resourceType) === 'issue' && (_context$type = context.type) !== null && _context$type !== void 0 && _context$type.includes('atlassian:Task') ? (_linkIconProps$label = linkIconProps.label) === null || _linkIconProps$label === void 0 ? void 0 : _linkIconProps$label.trim() : undefined;
|
|
22
|
+
var _label = (_ref = (_ref2 = jiraIssueTypeLabel !== null && jiraIssueTypeLabel !== void 0 ? jiraIssueTypeLabel : resourceTypeToLabel((_context$meta2 = context.meta) === null || _context$meta2 === void 0 ? void 0 : _context$meta2.resourceType)) !== null && _ref2 !== void 0 ? _ref2 : (_linkIconProps$label2 = linkIconProps.label) === null || _linkIconProps$label2 === void 0 ? void 0 : _linkIconProps$label2.trim()) !== null && _ref !== void 0 ? _ref : props.label;
|
|
23
|
+
return /*#__PURE__*/React.createElement(BaseIconElement, _extends({}, linkIconProps, props, {
|
|
24
|
+
label: _label,
|
|
25
|
+
name: ElementName.LinkIcon
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
var label = (_ref3 = (_resourceTypeToLabel = resourceTypeToLabel((_context$meta3 = context.meta) === null || _context$meta3 === void 0 ? void 0 : _context$meta3.resourceType)) !== null && _resourceTypeToLabel !== void 0 ? _resourceTypeToLabel : (_linkIconProps$label3 = linkIconProps.label) === null || _linkIconProps$label3 === void 0 ? void 0 : _linkIconProps$label3.trim()) !== null && _ref3 !== void 0 ? _ref3 : props.label;
|
|
20
29
|
return /*#__PURE__*/React.createElement(BaseIconElement, _extends({}, linkIconProps, props, {
|
|
21
30
|
label: label,
|
|
22
31
|
name: ElementName.LinkIcon
|
|
@@ -59,7 +59,7 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref2) {
|
|
|
59
59
|
hasImageErrored = _useState2[0],
|
|
60
60
|
setHasImageErrored = _useState2[1];
|
|
61
61
|
var renderAtlaskitIcon = React.useCallback(function () {
|
|
62
|
-
if (fg('platform_lp_use_entity_icon_url_for_icon')) {
|
|
62
|
+
if (fg('platform_lp_use_entity_icon_url_for_icon') || Array.isArray(icon) && fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
63
63
|
if (emoji) {
|
|
64
64
|
return emoji;
|
|
65
65
|
}
|
|
@@ -79,7 +79,7 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref2) {
|
|
|
79
79
|
}, [emoji, icon]);
|
|
80
80
|
var profileType = isProfileType(type);
|
|
81
81
|
var renderImageIcon = React.useCallback(function (errored, testId) {
|
|
82
|
-
if (fg('platform_lp_use_entity_icon_url_for_icon')) {
|
|
82
|
+
if (fg('platform_lp_use_entity_icon_url_for_icon') || Array.isArray(icon) && fg('platform_navx_jira_issue_type_icon_label_a11y')) {
|
|
83
83
|
if (!icon) {
|
|
84
84
|
return null;
|
|
85
85
|
}
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "45.17.
|
|
15
|
+
packageVersion: "45.17.16",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.17.
|
|
3
|
+
"version": "45.17.17",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/popup": "^6.0.0",
|
|
79
79
|
"@atlaskit/primitives": "^22.2.0",
|
|
80
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
|
-
"@atlaskit/react-ufo": "^7.
|
|
81
|
+
"@atlaskit/react-ufo": "^7.5.0",
|
|
82
82
|
"@atlaskit/rovo-triggers": "^10.9.0",
|
|
83
83
|
"@atlaskit/section-message": "^10.0.0",
|
|
84
84
|
"@atlaskit/select": "^22.6.0",
|
|
@@ -235,6 +235,9 @@
|
|
|
235
235
|
"platform_navx_smart_link_icon_label_a11y": {
|
|
236
236
|
"type": "boolean"
|
|
237
237
|
},
|
|
238
|
+
"platform_navx_jira_issue_type_icon_label_a11y": {
|
|
239
|
+
"type": "boolean"
|
|
240
|
+
},
|
|
238
241
|
"billplat_a11y_icon_label_fix": {
|
|
239
242
|
"type": "boolean",
|
|
240
243
|
"referenceOnly": true
|