@atlaskit/smart-card 28.0.0 → 28.0.1
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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +2 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +2 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +2 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 28.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#138717](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138717)
|
|
8
|
+
[`c435b6d52ac26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c435b6d52ac26) -
|
|
9
|
+
Removing aria-label for decorative images to fix a11y violations
|
|
10
|
+
|
|
3
11
|
## 28.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "28.0.
|
|
25
|
+
packageVersion: "28.0.1"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -62,11 +62,10 @@ var getCustomRenderStyles = function getCustomRenderStyles(value) {
|
|
|
62
62
|
})
|
|
63
63
|
);
|
|
64
64
|
};
|
|
65
|
-
var renderAtlaskitIcon = function renderAtlaskitIcon(icon,
|
|
65
|
+
var renderAtlaskitIcon = function renderAtlaskitIcon(icon, testId) {
|
|
66
66
|
if (icon) {
|
|
67
67
|
return (0, _react2.jsx)(_atlaskitIcon.default, {
|
|
68
68
|
icon: icon,
|
|
69
|
-
label: label,
|
|
70
69
|
testId: "".concat(testId, "-icon")
|
|
71
70
|
});
|
|
72
71
|
}
|
|
@@ -111,7 +110,7 @@ var Icon = function Icon(_ref) {
|
|
|
111
110
|
url = _ref.url;
|
|
112
111
|
var element = (0, _react.useMemo)(function () {
|
|
113
112
|
var defaultIcon = renderDefaultIcon(label, testId);
|
|
114
|
-
return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId) || renderAtlaskitIcon(icon,
|
|
113
|
+
return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId) || renderAtlaskitIcon(icon, testId) || defaultIcon;
|
|
115
114
|
}, [overrideIcon, icon, label, render, testId, url]);
|
|
116
115
|
var width = (0, _utils.getIconWidth)(size);
|
|
117
116
|
var styles = getIconStyles(position, width);
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "28.0.
|
|
20
|
+
packageVersion: "28.0.1",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "28.0.
|
|
7
|
+
packageVersion: "28.0.1"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -44,11 +44,10 @@ css(getTruncateStyles(1, value), {
|
|
|
44
44
|
verticalAlign: 'baseline'
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
const renderAtlaskitIcon = (icon,
|
|
47
|
+
const renderAtlaskitIcon = (icon, testId) => {
|
|
48
48
|
if (icon) {
|
|
49
49
|
return jsx(AtlaskitIcon, {
|
|
50
50
|
icon: icon,
|
|
51
|
-
label: label,
|
|
52
51
|
testId: `${testId}-icon`
|
|
53
52
|
});
|
|
54
53
|
}
|
|
@@ -88,7 +87,7 @@ const Icon = ({
|
|
|
88
87
|
}) => {
|
|
89
88
|
const element = useMemo(() => {
|
|
90
89
|
const defaultIcon = renderDefaultIcon(label, testId);
|
|
91
|
-
return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId) || renderAtlaskitIcon(icon,
|
|
90
|
+
return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId) || renderAtlaskitIcon(icon, testId) || defaultIcon;
|
|
92
91
|
}, [overrideIcon, icon, label, render, testId, url]);
|
|
93
92
|
const width = getIconWidth(size);
|
|
94
93
|
const styles = getIconStyles(position, width);
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "28.0.
|
|
10
|
+
packageVersion: "28.0.1",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "28.0.
|
|
18
|
+
packageVersion: "28.0.1"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -50,11 +50,10 @@ var getCustomRenderStyles = function getCustomRenderStyles(value) {
|
|
|
50
50
|
})
|
|
51
51
|
);
|
|
52
52
|
};
|
|
53
|
-
var renderAtlaskitIcon = function renderAtlaskitIcon(icon,
|
|
53
|
+
var renderAtlaskitIcon = function renderAtlaskitIcon(icon, testId) {
|
|
54
54
|
if (icon) {
|
|
55
55
|
return jsx(AtlaskitIcon, {
|
|
56
56
|
icon: icon,
|
|
57
|
-
label: label,
|
|
58
57
|
testId: "".concat(testId, "-icon")
|
|
59
58
|
});
|
|
60
59
|
}
|
|
@@ -99,7 +98,7 @@ var Icon = function Icon(_ref) {
|
|
|
99
98
|
url = _ref.url;
|
|
100
99
|
var element = useMemo(function () {
|
|
101
100
|
var defaultIcon = renderDefaultIcon(label, testId);
|
|
102
|
-
return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId) || renderAtlaskitIcon(icon,
|
|
101
|
+
return overrideIcon || (render === null || render === void 0 ? void 0 : render()) || renderImageIcon(defaultIcon, url, testId) || renderAtlaskitIcon(icon, testId) || defaultIcon;
|
|
103
102
|
}, [overrideIcon, icon, label, render, testId, url]);
|
|
104
103
|
var width = getIconWidth(size);
|
|
105
104
|
var styles = getIconStyles(position, width);
|
|
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
10
10
|
import LinkWarningModal from './LinkWarningModal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "28.0.
|
|
13
|
+
packageVersion: "28.0.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
52
52
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
54
|
-
"@atlaskit/popup": "^1.
|
|
54
|
+
"@atlaskit/popup": "^1.25.0",
|
|
55
55
|
"@atlaskit/primitives": "^12.1.0",
|
|
56
56
|
"@atlaskit/section-message": "^6.6.0",
|
|
57
57
|
"@atlaskit/select": "^17.15.0",
|