@atlaskit/smart-card 35.2.8 → 35.2.9
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 +9 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/ErroredView/index.js +50 -18
- package/dist/cjs/view/InlineCard/ForbiddenView/index.compiled.css +3 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +3 -1
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +5 -3
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +25 -10
- package/dist/cjs/view/InlineCard/common/action-button/index.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/ErroredView/index.js +49 -17
- package/dist/es2019/view/InlineCard/ForbiddenView/index.compiled.css +3 -1
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +3 -1
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +5 -3
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +25 -10
- package/dist/es2019/view/InlineCard/common/action-button/index.js +1 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.compiled.css +1 -0
- package/dist/esm/view/InlineCard/ErroredView/index.js +49 -17
- package/dist/esm/view/InlineCard/ForbiddenView/index.compiled.css +3 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +3 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +5 -3
- package/dist/esm/view/InlineCard/UnauthorisedView/index.compiled.css +1 -0
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +25 -10
- package/dist/esm/view/InlineCard/common/action-button/index.js +1 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 35.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#124203](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/124203)
|
|
8
|
+
[`e28e412a54a1e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e28e412a54a1e) -
|
|
9
|
+
[ux] EDM-11969: Fix SL inline card icon positioning
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 35.2.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -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: "35.2.
|
|
14
|
+
packageVersion: "35.2.9"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -11,7 +11,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
14
|
-
var _error = _interopRequireDefault(require("@atlaskit/icon/
|
|
14
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/core/migration/error"));
|
|
15
|
+
var _error2 = _interopRequireDefault(require("@atlaskit/icon/utility/migration/error"));
|
|
15
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -25,7 +26,38 @@ var _styled = require("../styled");
|
|
|
25
26
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
26
27
|
var _InlineCardErroredViewOld = require("./InlineCardErroredViewOld");
|
|
27
28
|
var styles = {
|
|
28
|
-
iconWrapper: "_2hwx1i6y"
|
|
29
|
+
iconWrapper: "_2hwx1i6y",
|
|
30
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
31
|
+
};
|
|
32
|
+
var fallbackIcon = function fallbackIcon() {
|
|
33
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
34
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
35
|
+
as: "span",
|
|
36
|
+
xcss: styles.fallbackIconWrapper
|
|
37
|
+
}, /*#__PURE__*/_react.default.createElement(_error.default, {
|
|
38
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
39
|
+
label: "error",
|
|
40
|
+
LEGACY_size: "small",
|
|
41
|
+
testId: "errored-view-default-icon"
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
46
|
+
as: "span",
|
|
47
|
+
xcss: styles.iconWrapper
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_error2.default, {
|
|
49
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
50
|
+
label: "error",
|
|
51
|
+
LEGACY_size: "small",
|
|
52
|
+
testId: "errored-view-default-icon"
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
return /*#__PURE__*/_react.default.createElement(_Icon.AKIconWrapper, null, /*#__PURE__*/_react.default.createElement(_error2.default, {
|
|
56
|
+
label: "error",
|
|
57
|
+
LEGACY_size: "small",
|
|
58
|
+
color: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
59
|
+
testId: "errored-view-default-icon"
|
|
60
|
+
}));
|
|
29
61
|
};
|
|
30
62
|
var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
31
63
|
var url = _ref.url,
|
|
@@ -39,6 +71,7 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
39
71
|
truncateInline = _ref.truncateInline,
|
|
40
72
|
showHoverPreview = _ref.showHoverPreview;
|
|
41
73
|
var frameRef = _react.default.useRef(null);
|
|
74
|
+
var hashAction = !!onRetry;
|
|
42
75
|
var handleRetry = _react.default.useCallback(function (event) {
|
|
43
76
|
if (onRetry) {
|
|
44
77
|
event.preventDefault();
|
|
@@ -57,27 +90,26 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
57
90
|
role: "button"
|
|
58
91
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.try_again)));
|
|
59
92
|
}, [handleRetry, onRetry]);
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}))
|
|
74
|
-
var content = /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
93
|
+
var content = (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
94
|
+
link: hashAction ? undefined : url,
|
|
95
|
+
onClick: hashAction ? undefined : onClick,
|
|
96
|
+
isSelected: isSelected,
|
|
97
|
+
ref: frameRef,
|
|
98
|
+
testId: testId,
|
|
99
|
+
truncateInline: truncateInline
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
101
|
+
icon: icon || fallbackIcon(),
|
|
102
|
+
link: hashAction ? url : undefined,
|
|
103
|
+
title: url,
|
|
104
|
+
onClick: hashAction ? onClick : undefined,
|
|
105
|
+
rightSide: message
|
|
106
|
+
}), renderActionButton()) : /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
75
107
|
testId: testId,
|
|
76
108
|
isSelected: isSelected,
|
|
77
109
|
ref: frameRef,
|
|
78
110
|
truncateInline: truncateInline
|
|
79
111
|
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
80
|
-
icon: icon ||
|
|
112
|
+
icon: icon || fallbackIcon(),
|
|
81
113
|
link: url,
|
|
82
114
|
title: url,
|
|
83
115
|
onClick: onClick,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
3
|
+
._1e0cbu77{display:inline flex}
|
|
2
4
|
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
3
5
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
6
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
@@ -29,8 +29,8 @@ var _styled = require("../styled");
|
|
|
29
29
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
30
30
|
var _InlineCardForbiddenViewOld = require("./InlineCardForbiddenViewOld");
|
|
31
31
|
var styles = {
|
|
32
|
-
iconWrapper: "_2hwx1i6y",
|
|
33
|
-
actionButtonLozengeStyle: "_bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
32
|
+
iconWrapper: "_2hwx1i6y _1e0cbu77",
|
|
33
|
+
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
34
34
|
};
|
|
35
35
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
36
36
|
return (0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._154ize3t{top:var(--ds-space-0,0)}
|
|
2
3
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
4
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
4
5
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
15
16
|
._4cvr1h6o{align-items:center}
|
|
16
17
|
._94n5ze3t{bottom:var(--ds-space-0,0)}
|
|
18
|
+
._c71l7vkz{max-height:1pc}
|
|
17
19
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
18
20
|
._kqswh2mm{position:relative}
|
|
19
21
|
._kqswstnw{position:absolute}
|
|
@@ -31,9 +31,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
31
31
|
var iconWrapperStyleSVG = null;
|
|
32
32
|
var styles = {
|
|
33
33
|
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
34
|
-
iconOuterWrapperStyle: "_2hwx1b66
|
|
34
|
+
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
35
35
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
36
36
|
iconWrapperStyle: "_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
37
|
+
linkStyle: "_2rkogqwt",
|
|
37
38
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
38
39
|
};
|
|
39
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
@@ -113,7 +114,7 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
113
114
|
src: icon,
|
|
114
115
|
"data-testid": "".concat(testId, "-image"),
|
|
115
116
|
alt: "",
|
|
116
|
-
className: (0, _runtime.ax)(["_1bsb1osq"])
|
|
117
|
+
className: (0, _runtime.ax)(["_c71l7vkz _1bsb1osq"])
|
|
117
118
|
}),
|
|
118
119
|
errored: errored,
|
|
119
120
|
loading: /*#__PURE__*/_react.default.createElement(_Icon.Shimmer, {
|
|
@@ -225,7 +226,8 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
225
226
|
}, link ? /*#__PURE__*/_react.default.createElement(LinkAppearance, {
|
|
226
227
|
href: link,
|
|
227
228
|
onClick: handleClick,
|
|
228
|
-
onKeyPress: handleKeyPress
|
|
229
|
+
onKeyPress: handleKeyPress,
|
|
230
|
+
className: (0, _runtime.ax)([styles.linkStyle])
|
|
229
231
|
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
230
232
|
as: "span",
|
|
231
233
|
xcss: styles.noLinkAppearanceStyle
|
|
@@ -28,18 +28,33 @@ var _styled = require("../styled");
|
|
|
28
28
|
var _withFrameStyleControl = _interopRequireDefault(require("../utils/withFrameStyleControl"));
|
|
29
29
|
var _InlineCardUnauthorizedViewOld = require("./InlineCardUnauthorizedViewOld");
|
|
30
30
|
var styles = {
|
|
31
|
-
iconWrapper: "_2hwx1i6y"
|
|
31
|
+
iconWrapper: "_2hwx1i6y",
|
|
32
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
32
33
|
};
|
|
33
34
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
37
|
+
as: "span",
|
|
38
|
+
xcss: styles.fallbackIconWrapper
|
|
39
|
+
}, /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
40
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
41
|
+
label: "error",
|
|
42
|
+
LEGACY_fallbackIcon: _lockFilled.default,
|
|
43
|
+
LEGACY_size: "small"
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
if ((0, _platformFeatureFlags.fg)('platform-smart-card-icon-migration')) {
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
48
|
+
as: "span",
|
|
49
|
+
xcss: styles.iconWrapper
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_lockLocked.default, {
|
|
51
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
52
|
+
label: "error",
|
|
53
|
+
LEGACY_fallbackIcon: _lockFilled.default,
|
|
54
|
+
LEGACY_size: "small"
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_Icon.AKIconWrapper, null, /*#__PURE__*/_react.default.createElement(_lockFilled.default, {
|
|
43
58
|
label: "error",
|
|
44
59
|
size: "small",
|
|
45
60
|
primaryColor: "var(--ds-icon-danger, ".concat(_colors.R400, ")")
|
|
@@ -41,6 +41,7 @@ var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
41
41
|
},
|
|
42
42
|
xcss: styles.button
|
|
43
43
|
}), /*#__PURE__*/React.createElement("span", {
|
|
44
|
+
tabIndex: isDisabled ? undefined : 0,
|
|
44
45
|
className: (0, _runtime.ax)([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
45
46
|
}, children));
|
|
46
47
|
});
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "35.2.
|
|
23
|
+
packageVersion: "35.2.9",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -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: "35.2.
|
|
5
|
+
packageVersion: "35.2.9"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -4,6 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import ButtonOld from '@atlaskit/button';
|
|
7
|
+
import ErrorIconCore from '@atlaskit/icon/core/migration/error';
|
|
7
8
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -18,7 +19,38 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
18
19
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
19
20
|
import { InlineCardErroredViewOld } from './InlineCardErroredViewOld';
|
|
20
21
|
const styles = {
|
|
21
|
-
iconWrapper: "_2hwx1i6y"
|
|
22
|
+
iconWrapper: "_2hwx1i6y",
|
|
23
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
24
|
+
};
|
|
25
|
+
const fallbackIcon = () => {
|
|
26
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
27
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
as: "span",
|
|
29
|
+
xcss: styles.fallbackIconWrapper
|
|
30
|
+
}, /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
31
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
32
|
+
label: "error",
|
|
33
|
+
LEGACY_size: "small",
|
|
34
|
+
testId: "errored-view-default-icon"
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
as: "span",
|
|
40
|
+
xcss: styles.iconWrapper
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
42
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
43
|
+
label: "error",
|
|
44
|
+
LEGACY_size: "small",
|
|
45
|
+
testId: "errored-view-default-icon"
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
49
|
+
label: "error",
|
|
50
|
+
LEGACY_size: "small",
|
|
51
|
+
color: `var(--ds-icon-danger, ${R300})`,
|
|
52
|
+
testId: "errored-view-default-icon"
|
|
53
|
+
}));
|
|
22
54
|
};
|
|
23
55
|
const InlineCardErroredViewNew = ({
|
|
24
56
|
url,
|
|
@@ -32,6 +64,7 @@ const InlineCardErroredViewNew = ({
|
|
|
32
64
|
showHoverPreview
|
|
33
65
|
}) => {
|
|
34
66
|
const frameRef = React.useRef(null);
|
|
67
|
+
const hashAction = !!onRetry;
|
|
35
68
|
const handleRetry = React.useCallback(event => {
|
|
36
69
|
if (onRetry) {
|
|
37
70
|
event.preventDefault();
|
|
@@ -50,27 +83,26 @@ const InlineCardErroredViewNew = ({
|
|
|
50
83
|
role: "button"
|
|
51
84
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)));
|
|
52
85
|
}, [handleRetry, onRetry]);
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}))
|
|
67
|
-
const content = /*#__PURE__*/React.createElement(Frame, {
|
|
86
|
+
const content = fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Frame, {
|
|
87
|
+
link: hashAction ? undefined : url,
|
|
88
|
+
onClick: hashAction ? undefined : onClick,
|
|
89
|
+
isSelected: isSelected,
|
|
90
|
+
ref: frameRef,
|
|
91
|
+
testId: testId,
|
|
92
|
+
truncateInline: truncateInline
|
|
93
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
94
|
+
icon: icon || fallbackIcon(),
|
|
95
|
+
link: hashAction ? url : undefined,
|
|
96
|
+
title: url,
|
|
97
|
+
onClick: hashAction ? onClick : undefined,
|
|
98
|
+
rightSide: message
|
|
99
|
+
}), renderActionButton()) : /*#__PURE__*/React.createElement(Frame, {
|
|
68
100
|
testId: testId,
|
|
69
101
|
isSelected: isSelected,
|
|
70
102
|
ref: frameRef,
|
|
71
103
|
truncateInline: truncateInline
|
|
72
104
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
73
|
-
icon: icon ||
|
|
105
|
+
icon: icon || fallbackIcon(),
|
|
74
106
|
link: url,
|
|
75
107
|
title: url,
|
|
76
108
|
onClick: onClick,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
3
|
+
._1e0cbu77{display:inline flex}
|
|
2
4
|
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
3
5
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
6
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
@@ -21,8 +21,8 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
import { InlineCardForbiddenViewOld } from './InlineCardForbiddenViewOld';
|
|
23
23
|
const styles = {
|
|
24
|
-
iconWrapper: "_2hwx1i6y",
|
|
25
|
-
actionButtonLozengeStyle: "_bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
24
|
+
iconWrapper: "_2hwx1i6y _1e0cbu77",
|
|
25
|
+
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
26
26
|
};
|
|
27
27
|
const fallbackForbiddenIcon = () => {
|
|
28
28
|
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._154ize3t{top:var(--ds-space-0,0)}
|
|
2
3
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
4
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
4
5
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
15
16
|
._4cvr1h6o{align-items:center}
|
|
16
17
|
._94n5ze3t{bottom:var(--ds-space-0,0)}
|
|
18
|
+
._c71l7vkz{max-height:1pc}
|
|
17
19
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
18
20
|
._kqswh2mm{position:relative}
|
|
19
21
|
._kqswstnw{position:absolute}
|
|
@@ -16,9 +16,10 @@ import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPos
|
|
|
16
16
|
const iconWrapperStyleSVG = null;
|
|
17
17
|
const styles = {
|
|
18
18
|
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
19
|
-
iconOuterWrapperStyle: "_2hwx1b66
|
|
19
|
+
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
20
20
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
21
21
|
iconWrapperStyle: "_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
22
|
+
linkStyle: "_2rkogqwt",
|
|
22
23
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
23
24
|
};
|
|
24
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
@@ -98,7 +99,7 @@ const IconAndTitleLayoutNew = ({
|
|
|
98
99
|
src: icon,
|
|
99
100
|
"data-testid": `${testId}-image`,
|
|
100
101
|
alt: "",
|
|
101
|
-
className: ax(["_1bsb1osq"])
|
|
102
|
+
className: ax(["_c71l7vkz _1bsb1osq"])
|
|
102
103
|
}),
|
|
103
104
|
errored: errored,
|
|
104
105
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
@@ -210,7 +211,8 @@ const IconAndTitleLayoutNew = ({
|
|
|
210
211
|
}, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
|
|
211
212
|
href: link,
|
|
212
213
|
onClick: handleClick,
|
|
213
|
-
onKeyPress: handleKeyPress
|
|
214
|
+
onKeyPress: handleKeyPress,
|
|
215
|
+
className: ax([styles.linkStyle])
|
|
214
216
|
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(Box, {
|
|
215
217
|
as: "span",
|
|
216
218
|
xcss: styles.noLinkAppearanceStyle
|
|
@@ -21,18 +21,33 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
import { InlineCardUnauthorizedViewOld } from './InlineCardUnauthorizedViewOld';
|
|
23
23
|
const styles = {
|
|
24
|
-
iconWrapper: "_2hwx1i6y"
|
|
24
|
+
iconWrapper: "_2hwx1i6y",
|
|
25
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
25
26
|
};
|
|
26
27
|
const fallbackUnauthorizedIcon = () => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
30
|
+
as: "span",
|
|
31
|
+
xcss: styles.fallbackIconWrapper
|
|
32
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
33
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
34
|
+
label: "error",
|
|
35
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
36
|
+
LEGACY_size: "small"
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
40
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
as: "span",
|
|
42
|
+
xcss: styles.iconWrapper
|
|
43
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
+
label: "error",
|
|
46
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
+
LEGACY_size: "small"
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
36
51
|
label: "error",
|
|
37
52
|
size: "small",
|
|
38
53
|
primaryColor: `var(--ds-icon-danger, ${R400})`
|
|
@@ -30,6 +30,7 @@ export const ActionButton = /*#__PURE__*/forwardRef(({
|
|
|
30
30
|
},
|
|
31
31
|
xcss: styles.button
|
|
32
32
|
}), /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
tabIndex: isDisabled ? undefined : 0,
|
|
33
34
|
className: ax([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
34
35
|
}, children));
|
|
35
36
|
});
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "35.2.
|
|
13
|
+
packageVersion: "35.2.9",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -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: "35.2.
|
|
7
|
+
packageVersion: "35.2.9"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -4,6 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import ButtonOld from '@atlaskit/button';
|
|
7
|
+
import ErrorIconCore from '@atlaskit/icon/core/migration/error';
|
|
7
8
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
8
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -18,7 +19,38 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
18
19
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
19
20
|
import { InlineCardErroredViewOld } from './InlineCardErroredViewOld';
|
|
20
21
|
var styles = {
|
|
21
|
-
iconWrapper: "_2hwx1i6y"
|
|
22
|
+
iconWrapper: "_2hwx1i6y",
|
|
23
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
24
|
+
};
|
|
25
|
+
var fallbackIcon = function fallbackIcon() {
|
|
26
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
27
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
as: "span",
|
|
29
|
+
xcss: styles.fallbackIconWrapper
|
|
30
|
+
}, /*#__PURE__*/React.createElement(ErrorIconCore, {
|
|
31
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
32
|
+
label: "error",
|
|
33
|
+
LEGACY_size: "small",
|
|
34
|
+
testId: "errored-view-default-icon"
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
38
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
as: "span",
|
|
40
|
+
xcss: styles.iconWrapper
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
42
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
43
|
+
label: "error",
|
|
44
|
+
LEGACY_size: "small",
|
|
45
|
+
testId: "errored-view-default-icon"
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
49
|
+
label: "error",
|
|
50
|
+
LEGACY_size: "small",
|
|
51
|
+
color: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
52
|
+
testId: "errored-view-default-icon"
|
|
53
|
+
}));
|
|
22
54
|
};
|
|
23
55
|
var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
24
56
|
var url = _ref.url,
|
|
@@ -32,6 +64,7 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
32
64
|
truncateInline = _ref.truncateInline,
|
|
33
65
|
showHoverPreview = _ref.showHoverPreview;
|
|
34
66
|
var frameRef = React.useRef(null);
|
|
67
|
+
var hashAction = !!onRetry;
|
|
35
68
|
var handleRetry = React.useCallback(function (event) {
|
|
36
69
|
if (onRetry) {
|
|
37
70
|
event.preventDefault();
|
|
@@ -50,27 +83,26 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
50
83
|
role: "button"
|
|
51
84
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)));
|
|
52
85
|
}, [handleRetry, onRetry]);
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}))
|
|
67
|
-
var content = /*#__PURE__*/React.createElement(Frame, {
|
|
86
|
+
var content = fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Frame, {
|
|
87
|
+
link: hashAction ? undefined : url,
|
|
88
|
+
onClick: hashAction ? undefined : onClick,
|
|
89
|
+
isSelected: isSelected,
|
|
90
|
+
ref: frameRef,
|
|
91
|
+
testId: testId,
|
|
92
|
+
truncateInline: truncateInline
|
|
93
|
+
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
94
|
+
icon: icon || fallbackIcon(),
|
|
95
|
+
link: hashAction ? url : undefined,
|
|
96
|
+
title: url,
|
|
97
|
+
onClick: hashAction ? onClick : undefined,
|
|
98
|
+
rightSide: message
|
|
99
|
+
}), renderActionButton()) : /*#__PURE__*/React.createElement(Frame, {
|
|
68
100
|
testId: testId,
|
|
69
101
|
isSelected: isSelected,
|
|
70
102
|
ref: frameRef,
|
|
71
103
|
truncateInline: truncateInline
|
|
72
104
|
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
73
|
-
icon: icon ||
|
|
105
|
+
icon: icon || fallbackIcon(),
|
|
74
106
|
link: url,
|
|
75
107
|
title: url,
|
|
76
108
|
onClick: onClick,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
3
|
+
._1e0cbu77{display:inline flex}
|
|
2
4
|
._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
|
|
3
5
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
6
|
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
@@ -22,8 +22,8 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
22
22
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
23
23
|
import { InlineCardForbiddenViewOld } from './InlineCardForbiddenViewOld';
|
|
24
24
|
var styles = {
|
|
25
|
-
iconWrapper: "_2hwx1i6y",
|
|
26
|
-
actionButtonLozengeStyle: "_bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
25
|
+
iconWrapper: "_2hwx1i6y _1e0cbu77",
|
|
26
|
+
actionButtonLozengeStyle: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t"
|
|
27
27
|
};
|
|
28
28
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
29
29
|
return fg('platform-smart-card-icon-migration') ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
._2rkogqwt{border-radius:var(--ds-border-radius-050,2px)}._154ize3t{top:var(--ds-space-0,0)}
|
|
2
3
|
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
4
|
._18u01b66{margin-left:var(--ds-space-050,4px)}
|
|
4
5
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
15
16
|
._4cvr1h6o{align-items:center}
|
|
16
17
|
._94n5ze3t{bottom:var(--ds-space-0,0)}
|
|
18
|
+
._c71l7vkz{max-height:1pc}
|
|
17
19
|
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
18
20
|
._kqswh2mm{position:relative}
|
|
19
21
|
._kqswstnw{position:absolute}
|
|
@@ -22,9 +22,10 @@ import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPos
|
|
|
22
22
|
var iconWrapperStyleSVG = null;
|
|
23
23
|
var styles = {
|
|
24
24
|
iconEmptyStyle: "_1bsb7vkz _1e0c1o8l _tzy4idpf",
|
|
25
|
-
iconOuterWrapperStyle: "_2hwx1b66
|
|
25
|
+
iconOuterWrapperStyle: "_2hwx1b66 _kqswh2mm",
|
|
26
26
|
iconTitleWrapperStyle: "_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66",
|
|
27
27
|
iconWrapperStyle: "_kqswstnw _1e0c116y _4cvr1h6o _vchhusvi _154ize3t _1ltvze3t _94n5ze3t _1bsb7vkz _uiztglyw",
|
|
28
|
+
linkStyle: "_2rkogqwt",
|
|
28
29
|
noLinkAppearanceStyle: "_syaz131l _18u01b66"
|
|
29
30
|
};
|
|
30
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
@@ -104,7 +105,7 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
104
105
|
src: icon,
|
|
105
106
|
"data-testid": "".concat(testId, "-image"),
|
|
106
107
|
alt: "",
|
|
107
|
-
className: ax(["_1bsb1osq"])
|
|
108
|
+
className: ax(["_c71l7vkz _1bsb1osq"])
|
|
108
109
|
}),
|
|
109
110
|
errored: errored,
|
|
110
111
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
@@ -216,7 +217,8 @@ var IconAndTitleLayoutNew = function IconAndTitleLayoutNew(_ref3) {
|
|
|
216
217
|
}, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
|
|
217
218
|
href: link,
|
|
218
219
|
onClick: handleClick,
|
|
219
|
-
onKeyPress: handleKeyPress
|
|
220
|
+
onKeyPress: handleKeyPress,
|
|
221
|
+
className: ax([styles.linkStyle])
|
|
220
222
|
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(Box, {
|
|
221
223
|
as: "span",
|
|
222
224
|
xcss: styles.noLinkAppearanceStyle
|
|
@@ -21,18 +21,33 @@ import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
|
21
21
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
22
22
|
import { InlineCardUnauthorizedViewOld } from './InlineCardUnauthorizedViewOld';
|
|
23
23
|
var styles = {
|
|
24
|
-
iconWrapper: "_2hwx1i6y"
|
|
24
|
+
iconWrapper: "_2hwx1i6y",
|
|
25
|
+
fallbackIconWrapper: "_2hwx1i6y _1e0cbu77"
|
|
25
26
|
};
|
|
26
27
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
29
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
30
|
+
as: "span",
|
|
31
|
+
xcss: styles.fallbackIconWrapper
|
|
32
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
33
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
34
|
+
label: "error",
|
|
35
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
36
|
+
LEGACY_size: "small"
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
if (fg('platform-smart-card-icon-migration')) {
|
|
40
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
41
|
+
as: "span",
|
|
42
|
+
xcss: styles.iconWrapper
|
|
43
|
+
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
44
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
45
|
+
label: "error",
|
|
46
|
+
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
47
|
+
LEGACY_size: "small"
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
return /*#__PURE__*/React.createElement(AKIconWrapper, null, /*#__PURE__*/React.createElement(LegacyLockIcon, {
|
|
36
51
|
label: "error",
|
|
37
52
|
size: "small",
|
|
38
53
|
primaryColor: "var(--ds-icon-danger, ".concat(R400, ")")
|
|
@@ -31,6 +31,7 @@ export var ActionButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
31
31
|
},
|
|
32
32
|
xcss: styles.button
|
|
33
33
|
}), /*#__PURE__*/React.createElement("span", {
|
|
34
|
+
tabIndex: isDisabled ? undefined : 0,
|
|
34
35
|
className: ax([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
35
36
|
}, children));
|
|
36
37
|
});
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "35.2.
|
|
16
|
+
packageVersion: "35.2.9",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.9",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/heading": "^5.1.0",
|
|
42
42
|
"@atlaskit/icon": "^25.0.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
|
-
"@atlaskit/icon-lab": "^4.
|
|
44
|
+
"@atlaskit/icon-lab": "^4.1.0",
|
|
45
45
|
"@atlaskit/icon-object": "^7.0.0",
|
|
46
46
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
47
47
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/textarea": "^8.0.0",
|
|
66
66
|
"@atlaskit/textfield": "^8.0.0",
|
|
67
67
|
"@atlaskit/theme": "^18.0.0",
|
|
68
|
-
"@atlaskit/tokens": "^4.
|
|
68
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.0.0",
|
|
70
70
|
"@atlaskit/ufo": "^0.4.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|