@atlaskit/smart-card 27.12.3 → 27.13.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 +21 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +7 -4
- package/dist/cjs/view/InlineCard/Icon.js +17 -3
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +31 -11
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +41 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +7 -4
- package/dist/es2019/view/InlineCard/Icon.js +16 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +33 -13
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +67 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/related-urls-block/resolved/related-url-list/index.js +7 -4
- package/dist/esm/view/InlineCard/Icon.js +16 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +33 -13
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +40 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/InlineCard/Icon.d.ts +4 -0
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +14 -0
- package/dist/types-ts4.5/view/InlineCard/Icon.d.ts +4 -0
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +14 -0
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 27.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#127454](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127454)
|
|
8
|
+
[`e869f31dbe200`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e869f31dbe200) -
|
|
9
|
+
[ux] Migrates away from legacy icons behind a feature flag.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 27.13.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#127156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127156)
|
|
17
|
+
[`4795e7d3ea7c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4795e7d3ea7c1) -
|
|
18
|
+
[ux] Increase inline smart-card icon size
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 27.12.3
|
|
4
25
|
|
|
5
26
|
### Patch 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: "27.
|
|
25
|
+
packageVersion: "27.13.1"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -30,9 +30,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
30
30
|
var getIconFF = function getIconFF() {
|
|
31
31
|
if ((0, _platformFeatureFlags.fg)('platform.linking-platform.smart-card.hover-card-action-redesign')) {
|
|
32
32
|
if ((0, _platformFeatureFlags.fg)('platform.linking-platform.smart-card.action-icon-redesign')) {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
33
34
|
return _actualSize.default;
|
|
34
35
|
}
|
|
35
36
|
}
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
36
38
|
return _vidFullScreenOn.default;
|
|
37
39
|
};
|
|
38
40
|
var PreviewAction = function PreviewAction(_ref) {
|
|
@@ -81,6 +83,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
81
83
|
}
|
|
82
84
|
}, [analytics, data, invoke, onClickCallback]);
|
|
83
85
|
var isStackItem = props.as === 'stack-item';
|
|
86
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
84
87
|
var Icon = isStackItem ? _actualSize.default : getIconFF();
|
|
85
88
|
var tooltipMessage = isStackItem ? _messages.messages.preview_description : _messages.messages.preview_improved;
|
|
86
89
|
return data ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
|
|
@@ -9,8 +9,8 @@ exports.default = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
13
|
-
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/
|
|
12
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
13
|
+
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-up"));
|
|
14
14
|
var _primitives = require("@atlaskit/primitives");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
var _messages = require("../../../../../../../messages");
|
|
@@ -49,9 +49,11 @@ var RelatedUrlList = function RelatedUrlList(_ref) {
|
|
|
49
49
|
testId: "".concat(testId, "-expand-title"),
|
|
50
50
|
backgroundColor: "color.background.neutral.subtle",
|
|
51
51
|
"aria-expanded": !!isOpen,
|
|
52
|
-
padding: "space.0"
|
|
52
|
+
padding: "space.0",
|
|
53
|
+
paddingInlineEnd: "space.050"
|
|
53
54
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
54
55
|
alignBlock: "center",
|
|
56
|
+
space: "space.050",
|
|
55
57
|
spread: "space-between"
|
|
56
58
|
}, /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
57
59
|
overrideCss: (0, _react2.css)({
|
|
@@ -61,8 +63,9 @@ var RelatedUrlList = function RelatedUrlList(_ref) {
|
|
|
61
63
|
descriptor: title
|
|
62
64
|
}
|
|
63
65
|
}), /*#__PURE__*/_react.default.createElement(ChevronComponent, {
|
|
66
|
+
LEGACY_margin: "0 -4px",
|
|
64
67
|
label: (0, _utils.getFormattedMessageAsString)(intl, title),
|
|
65
|
-
|
|
68
|
+
color: "currentColor"
|
|
66
69
|
}))), isOpen && /*#__PURE__*/_react.default.createElement(_resolvedResultStack.default, {
|
|
67
70
|
resolvedResults: resolvedResults,
|
|
68
71
|
testId: testId,
|
|
@@ -4,9 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Shimmer = exports.Icon = exports.AKIconWrapper = void 0;
|
|
7
|
+
exports.Shimmer = exports.IconResized = exports.Icon = exports.AKIconWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
var _linkingCommon = require("@atlaskit/linking-common");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
11
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
13
|
|
|
@@ -28,6 +29,19 @@ var Icon = exports.Icon = _styled.default.img({
|
|
|
28
29
|
transform: 'translate(-50%, -50%)'
|
|
29
30
|
});
|
|
30
31
|
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
|
+
var IconResized = exports.IconResized = _styled.default.img({
|
|
34
|
+
height: '16px',
|
|
35
|
+
width: '16px',
|
|
36
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
37
|
+
borderRadius: '2px',
|
|
38
|
+
userSelect: 'none',
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
top: '50%',
|
|
41
|
+
left: '50%',
|
|
42
|
+
transform: 'translate(-50%, -50%)'
|
|
43
|
+
});
|
|
44
|
+
|
|
31
45
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
32
46
|
// are less than that in height/width.
|
|
33
47
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
@@ -47,8 +61,8 @@ var Shimmer = exports.Shimmer = function Shimmer(_ref) {
|
|
|
47
61
|
marginRight: "var(--ds-space-050, 4px)"
|
|
48
62
|
};
|
|
49
63
|
return /*#__PURE__*/_react.default.createElement(_linkingCommon.Skeleton, {
|
|
50
|
-
width: 14,
|
|
51
|
-
height: 14,
|
|
64
|
+
width: (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? 16 : 14,
|
|
65
|
+
height: (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? 16 : 14,
|
|
52
66
|
borderRadius: 2,
|
|
53
67
|
testId: testId
|
|
54
68
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -18,6 +18,7 @@ var _Icon = require("../Icon");
|
|
|
18
18
|
var _styled = require("./styled");
|
|
19
19
|
var _link = _interopRequireDefault(require("@atlaskit/icon/core/migration/link"));
|
|
20
20
|
var _styled2 = require("../styled");
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
24
|
var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
@@ -58,12 +59,12 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
58
59
|
icon = _this$props.icon,
|
|
59
60
|
emoji = _this$props.emoji;
|
|
60
61
|
if (emoji) {
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement(_styled.EmojiWrapper, null, emoji);
|
|
62
|
+
return (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/_react.default.createElement(_styled.EmojiWrapperResized, null, emoji) : /*#__PURE__*/_react.default.createElement(_styled.EmojiWrapper, null, emoji);
|
|
62
63
|
}
|
|
63
64
|
if (!icon || typeof icon === 'string') {
|
|
64
65
|
return null;
|
|
65
66
|
}
|
|
66
|
-
return /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, icon);
|
|
67
|
+
return (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/_react.default.createElement(_styled.IconWrapperResized, null, icon) : /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, icon);
|
|
67
68
|
}
|
|
68
69
|
}, {
|
|
69
70
|
key: "renderImageIcon",
|
|
@@ -72,15 +73,22 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
72
73
|
if (!url || typeof url !== 'string') {
|
|
73
74
|
return null;
|
|
74
75
|
}
|
|
76
|
+
var icon = (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/_react.default.createElement(_Icon.IconResized
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
78
|
+
, {
|
|
79
|
+
className: "smart-link-icon",
|
|
80
|
+
src: url,
|
|
81
|
+
"data-testid": "".concat(testId, "-image")
|
|
82
|
+
}) : /*#__PURE__*/_react.default.createElement(_Icon.Icon
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
84
|
+
, {
|
|
85
|
+
className: "smart-link-icon",
|
|
86
|
+
src: url,
|
|
87
|
+
"data-testid": "".concat(testId, "-image")
|
|
88
|
+
});
|
|
75
89
|
return /*#__PURE__*/_react.default.createElement(_reactRenderImage.default, {
|
|
76
90
|
src: url,
|
|
77
|
-
loaded:
|
|
78
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
79
|
-
, {
|
|
80
|
-
className: "smart-link-icon",
|
|
81
|
-
src: url,
|
|
82
|
-
"data-testid": "".concat(testId, "-image")
|
|
83
|
-
}),
|
|
91
|
+
loaded: icon,
|
|
84
92
|
errored: errored,
|
|
85
93
|
loading: /*#__PURE__*/_react.default.createElement(_Icon.Shimmer, {
|
|
86
94
|
testId: "".concat(testId, "-loading")
|
|
@@ -94,7 +102,14 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
94
102
|
if (defaultIcon) {
|
|
95
103
|
return /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, defaultIcon);
|
|
96
104
|
}
|
|
97
|
-
return
|
|
105
|
+
return (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/_react.default.createElement(_styled.IconWrapperResized, {
|
|
106
|
+
"data-testid": "".concat(testId, "-default")
|
|
107
|
+
}, /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
108
|
+
label: "link",
|
|
109
|
+
LEGACY_size: "small",
|
|
110
|
+
testId: "".concat(testId, "-default"),
|
|
111
|
+
color: "currentColor"
|
|
112
|
+
})) : /*#__PURE__*/_react.default.createElement(_styled.IconWrapper, null, /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
98
113
|
label: "link",
|
|
99
114
|
LEGACY_size: "small",
|
|
100
115
|
testId: "".concat(testId, "-default"),
|
|
@@ -128,7 +143,12 @@ var IconAndTitleLayout = exports.IconAndTitleLayout = /*#__PURE__*/function (_Re
|
|
|
128
143
|
rightSide = _this$props2.rightSide,
|
|
129
144
|
_this$props2$testId = _this$props2.testId,
|
|
130
145
|
testId = _this$props2$testId === void 0 ? 'inline-card-icon-and-title' : _this$props2$testId;
|
|
131
|
-
var
|
|
146
|
+
var iconPart = (0, _platformFeatureFlags.fg)('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/_react.default.createElement(_styled.IconPositionWrapper, {
|
|
147
|
+
"data-testid": "icon-position-wrapper"
|
|
148
|
+
}, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.IconEmptyWrapperResized, {
|
|
149
|
+
"data-testid": "icon-empty-wrapper"
|
|
150
|
+
}), this.renderIcon(testId))) : /*#__PURE__*/_react.default.createElement(_styled.IconPositionWrapper, null, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.IconEmptyWrapper, null), this.renderIcon(testId)));
|
|
151
|
+
var titlePart = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, iconPart, /*#__PURE__*/_react.default.createElement(_styled.TitleWrapper
|
|
132
152
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
133
153
|
, {
|
|
134
154
|
style: {
|
|
@@ -4,13 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TitleWrapperClassName = exports.TitleWrapper = exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.IconWrapper = exports.IconTitleWrapper = exports.IconPositionWrapper = exports.IconOverrides = exports.IconObjectOverrides = exports.IconEmptyWrapper = exports.EmojiWrapper = void 0;
|
|
7
|
+
exports.TitleWrapperClassName = exports.TitleWrapper = exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.IconWrapperResized = exports.IconWrapper = exports.IconTitleWrapper = exports.IconPositionWrapper = exports.IconOverridesResized = exports.IconOverrides = exports.IconObjectOverridesResized = exports.IconObjectOverrides = exports.IconEmptyWrapperResized = exports.IconEmptyWrapper = exports.EmojiWrapperResized = exports.EmojiWrapper = void 0;
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
|
|
11
11
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
12
|
+
// Replace with IconObjectOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
12
13
|
var IconObjectOverrides = exports.IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 3px;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
14
|
+
|
|
13
15
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
16
|
+
// Replace with IconOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
14
17
|
var IconOverrides = exports.IconOverrides = "\n\n & > * > span {\n height: 16px;\n width: 14px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
15
18
|
|
|
16
19
|
// Wraps all icons represented in Inline Links. Icons have three sources/types:
|
|
@@ -19,6 +22,7 @@ var IconOverrides = exports.IconOverrides = "\n\n & > * > span {\n height: 1
|
|
|
19
22
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
20
23
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
21
24
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
25
|
+
// Replace with IconWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
22
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
27
|
var IconWrapper = exports.IconWrapper = _styled.default.span({
|
|
24
28
|
userSelect: 'none'
|
|
@@ -28,7 +32,23 @@ IconOverrides,
|
|
|
28
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
33
|
IconObjectOverrides);
|
|
30
34
|
|
|
35
|
+
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
36
|
+
var IconObjectOverridesResized = exports.IconObjectOverridesResized = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
37
|
+
|
|
38
|
+
// TODO: remove this override behaviour for @atlaskit/icon
|
|
39
|
+
var IconOverridesResized = exports.IconOverridesResized = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
+
var IconWrapperResized = exports.IconWrapperResized = _styled.default.span({
|
|
43
|
+
userSelect: 'none'
|
|
44
|
+
},
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
|
+
IconOverridesResized,
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
+
IconObjectOverridesResized);
|
|
49
|
+
|
|
31
50
|
// Wraps all emoji in Inline Links similar to icon
|
|
51
|
+
// Replace with EmojiWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
32
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
53
|
var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
|
|
34
54
|
display: 'inline-block',
|
|
@@ -40,6 +60,17 @@ IconOverrides,
|
|
|
40
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
61
|
IconObjectOverrides);
|
|
42
62
|
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
64
|
+
var EmojiWrapperResized = exports.EmojiWrapperResized = _styled.default.span({
|
|
65
|
+
display: 'inline-block',
|
|
66
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
67
|
+
userSelect: 'none'
|
|
68
|
+
},
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
70
|
+
IconOverridesResized,
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
72
|
+
IconObjectOverridesResized);
|
|
73
|
+
|
|
43
74
|
// The main 'wrapping' element, title of the content.
|
|
44
75
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
45
76
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
@@ -76,6 +107,7 @@ var IconPositionWrapper = exports.IconPositionWrapper = _styled.default.span({
|
|
|
76
107
|
display: 'inline-block'
|
|
77
108
|
});
|
|
78
109
|
|
|
110
|
+
// Replace with IconEmptyWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
79
111
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
80
112
|
var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
81
113
|
width: '14px',
|
|
@@ -84,6 +116,14 @@ var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
|
|
|
84
116
|
opacity: 0
|
|
85
117
|
});
|
|
86
118
|
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
120
|
+
var IconEmptyWrapperResized = exports.IconEmptyWrapperResized = _styled.default.span({
|
|
121
|
+
width: '16px',
|
|
122
|
+
height: '100%',
|
|
123
|
+
display: 'inline-block',
|
|
124
|
+
opacity: 0
|
|
125
|
+
});
|
|
126
|
+
|
|
87
127
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
88
128
|
// To achieve same result we use classname instead.
|
|
89
129
|
var TitleWrapperClassName = exports.TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
@@ -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: "27.
|
|
20
|
+
packageVersion: "27.13.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: "27.
|
|
7
|
+
packageVersion: "27.13.1"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -13,9 +13,11 @@ import Action from '../action';
|
|
|
13
13
|
const getIconFF = () => {
|
|
14
14
|
if (fg('platform.linking-platform.smart-card.hover-card-action-redesign')) {
|
|
15
15
|
if (fg('platform.linking-platform.smart-card.action-icon-redesign')) {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
16
17
|
return MediaServicesActualSizeIcon;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
19
21
|
return VidFullScreenOnIcon;
|
|
20
22
|
};
|
|
21
23
|
const PreviewAction = ({
|
|
@@ -50,6 +52,7 @@ const PreviewAction = ({
|
|
|
50
52
|
}
|
|
51
53
|
}, [analytics, data, invoke, onClickCallback]);
|
|
52
54
|
const isStackItem = props.as === 'stack-item';
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
53
56
|
const Icon = isStackItem ? MediaServicesActualSizeIcon : getIconFF();
|
|
54
57
|
const tooltipMessage = isStackItem ? messages.preview_description : messages.preview_improved;
|
|
55
58
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
4
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
3
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
4
|
+
import ChevronUpIcon from '@atlaskit/icon/utility/migration/chevron-up';
|
|
5
5
|
import { Inline, Pressable, Stack, xcss } from '@atlaskit/primitives';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css } from '@emotion/react';
|
|
@@ -33,9 +33,11 @@ const RelatedUrlList = ({
|
|
|
33
33
|
testId: `${testId}-expand-title`,
|
|
34
34
|
backgroundColor: "color.background.neutral.subtle",
|
|
35
35
|
"aria-expanded": !!isOpen,
|
|
36
|
-
padding: "space.0"
|
|
36
|
+
padding: "space.0",
|
|
37
|
+
paddingInlineEnd: "space.050"
|
|
37
38
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
38
39
|
alignBlock: "center",
|
|
40
|
+
space: "space.050",
|
|
39
41
|
spread: "space-between"
|
|
40
42
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
41
43
|
overrideCss: css({
|
|
@@ -45,8 +47,9 @@ const RelatedUrlList = ({
|
|
|
45
47
|
descriptor: title
|
|
46
48
|
}
|
|
47
49
|
}), /*#__PURE__*/React.createElement(ChevronComponent, {
|
|
50
|
+
LEGACY_margin: "0 -4px",
|
|
48
51
|
label: getFormattedMessageAsString(intl, title),
|
|
49
|
-
|
|
52
|
+
color: "currentColor"
|
|
50
53
|
}))), isOpen && /*#__PURE__*/React.createElement(ResolvedResultsStack, {
|
|
51
54
|
resolvedResults: resolvedResults,
|
|
52
55
|
testId: testId,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
|
|
6
7
|
// TODO: Figure out a more scalable/responsive solution
|
|
@@ -21,6 +22,19 @@ export const Icon = styled.img({
|
|
|
21
22
|
transform: 'translate(-50%, -50%)'
|
|
22
23
|
});
|
|
23
24
|
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
|
+
export const IconResized = styled.img({
|
|
27
|
+
height: '16px',
|
|
28
|
+
width: '16px',
|
|
29
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
30
|
+
borderRadius: '2px',
|
|
31
|
+
userSelect: 'none',
|
|
32
|
+
position: 'absolute',
|
|
33
|
+
top: '50%',
|
|
34
|
+
left: '50%',
|
|
35
|
+
transform: 'translate(-50%, -50%)'
|
|
36
|
+
});
|
|
37
|
+
|
|
24
38
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
25
39
|
// are less than that in height/width.
|
|
26
40
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
@@ -41,8 +55,8 @@ export const Shimmer = ({
|
|
|
41
55
|
marginRight: "var(--ds-space-050, 4px)"
|
|
42
56
|
};
|
|
43
57
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
44
|
-
width: 14,
|
|
45
|
-
height: 14,
|
|
58
|
+
width: fg('linking-platform-increase-inline-card-icon-size') ? 16 : 14,
|
|
59
|
+
height: fg('linking-platform-increase-inline-card-icon-size') ? 16 : 14,
|
|
46
60
|
borderRadius: 2,
|
|
47
61
|
testId: testId
|
|
48
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ImageLoader from 'react-render-image';
|
|
4
|
-
import { Icon, Shimmer } from '../Icon';
|
|
5
|
-
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, TitleWrapper, EmojiWrapper, TitleWrapperClassName } from './styled';
|
|
4
|
+
import { Icon, IconResized, Shimmer } from '../Icon';
|
|
5
|
+
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, TitleWrapper, EmojiWrapper, TitleWrapperClassName, IconEmptyWrapperResized, IconWrapperResized, EmojiWrapperResized } from './styled';
|
|
6
6
|
import LinkIcon from '@atlaskit/icon/core/migration/link';
|
|
7
7
|
import { LinkAppearance, NoLinkAppearance } from '../styled';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
9
|
export class IconAndTitleLayout extends React.Component {
|
|
9
10
|
constructor(...args) {
|
|
10
11
|
super(...args);
|
|
@@ -38,12 +39,12 @@ export class IconAndTitleLayout extends React.Component {
|
|
|
38
39
|
emoji
|
|
39
40
|
} = this.props;
|
|
40
41
|
if (emoji) {
|
|
41
|
-
return /*#__PURE__*/React.createElement(EmojiWrapper, null, emoji);
|
|
42
|
+
return fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(EmojiWrapperResized, null, emoji) : /*#__PURE__*/React.createElement(EmojiWrapper, null, emoji);
|
|
42
43
|
}
|
|
43
44
|
if (!icon || typeof icon === 'string') {
|
|
44
45
|
return null;
|
|
45
46
|
}
|
|
46
|
-
return /*#__PURE__*/React.createElement(IconWrapper, null, icon);
|
|
47
|
+
return fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconWrapperResized, null, icon) : /*#__PURE__*/React.createElement(IconWrapper, null, icon);
|
|
47
48
|
}
|
|
48
49
|
renderImageIcon(errored, testId) {
|
|
49
50
|
const {
|
|
@@ -52,15 +53,22 @@ export class IconAndTitleLayout extends React.Component {
|
|
|
52
53
|
if (!url || typeof url !== 'string') {
|
|
53
54
|
return null;
|
|
54
55
|
}
|
|
56
|
+
const icon = fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconResized
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
|
+
, {
|
|
59
|
+
className: "smart-link-icon",
|
|
60
|
+
src: url,
|
|
61
|
+
"data-testid": `${testId}-image`
|
|
62
|
+
}) : /*#__PURE__*/React.createElement(Icon
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
64
|
+
, {
|
|
65
|
+
className: "smart-link-icon",
|
|
66
|
+
src: url,
|
|
67
|
+
"data-testid": `${testId}-image`
|
|
68
|
+
});
|
|
55
69
|
return /*#__PURE__*/React.createElement(ImageLoader, {
|
|
56
70
|
src: url,
|
|
57
|
-
loaded:
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
59
|
-
, {
|
|
60
|
-
className: "smart-link-icon",
|
|
61
|
-
src: url,
|
|
62
|
-
"data-testid": `${testId}-image`
|
|
63
|
-
}),
|
|
71
|
+
loaded: icon,
|
|
64
72
|
errored: errored,
|
|
65
73
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
66
74
|
testId: `${testId}-loading`
|
|
@@ -74,7 +82,14 @@ export class IconAndTitleLayout extends React.Component {
|
|
|
74
82
|
if (defaultIcon) {
|
|
75
83
|
return /*#__PURE__*/React.createElement(IconWrapper, null, defaultIcon);
|
|
76
84
|
}
|
|
77
|
-
return
|
|
85
|
+
return fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconWrapperResized, {
|
|
86
|
+
"data-testid": `${testId}-default`
|
|
87
|
+
}, /*#__PURE__*/React.createElement(LinkIcon, {
|
|
88
|
+
label: "link",
|
|
89
|
+
LEGACY_size: "small",
|
|
90
|
+
testId: `${testId}-default`,
|
|
91
|
+
color: "currentColor"
|
|
92
|
+
})) : /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(LinkIcon, {
|
|
78
93
|
label: "link",
|
|
79
94
|
LEGACY_size: "small",
|
|
80
95
|
testId: `${testId}-default`,
|
|
@@ -104,7 +119,12 @@ export class IconAndTitleLayout extends React.Component {
|
|
|
104
119
|
rightSide,
|
|
105
120
|
testId = 'inline-card-icon-and-title'
|
|
106
121
|
} = this.props;
|
|
107
|
-
const
|
|
122
|
+
const iconPart = fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconPositionWrapper, {
|
|
123
|
+
"data-testid": "icon-position-wrapper"
|
|
124
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperResized, {
|
|
125
|
+
"data-testid": "icon-empty-wrapper"
|
|
126
|
+
}), this.renderIcon(testId))) : /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId)));
|
|
127
|
+
const titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, iconPart, /*#__PURE__*/React.createElement(TitleWrapper
|
|
108
128
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
109
129
|
, {
|
|
110
130
|
style: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
4
|
+
// Replace with IconObjectOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
4
5
|
export const IconObjectOverrides = `
|
|
5
6
|
& > span {
|
|
6
7
|
height: 16px;
|
|
@@ -17,7 +18,9 @@ export const IconObjectOverrides = `
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
`;
|
|
21
|
+
|
|
20
22
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
23
|
+
// Replace with IconOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
21
24
|
export const IconOverrides = `
|
|
22
25
|
|
|
23
26
|
& > * > span {
|
|
@@ -40,6 +43,7 @@ export const IconOverrides = `
|
|
|
40
43
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
41
44
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
42
45
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
46
|
+
// Replace with IconWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
43
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
48
|
export const IconWrapper = styled.span({
|
|
45
49
|
userSelect: 'none'
|
|
@@ -49,7 +53,50 @@ IconOverrides,
|
|
|
49
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
54
|
IconObjectOverrides);
|
|
51
55
|
|
|
56
|
+
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
57
|
+
export const IconObjectOverridesResized = `
|
|
58
|
+
& > span {
|
|
59
|
+
height: 16px;
|
|
60
|
+
width: 16px;
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 3px;
|
|
63
|
+
left: 0;
|
|
64
|
+
& > svg {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 50%;
|
|
67
|
+
left: 50%;
|
|
68
|
+
transform: translate(-50%, -50%);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
// TODO: remove this override behaviour for @atlaskit/icon
|
|
74
|
+
export const IconOverridesResized = `
|
|
75
|
+
& > * > span {
|
|
76
|
+
height: 16px;
|
|
77
|
+
width: 16px;
|
|
78
|
+
position: absolute;
|
|
79
|
+
left: 0;
|
|
80
|
+
& > svg {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 50%;
|
|
83
|
+
left: 50%;
|
|
84
|
+
transform: translate(-50%, -50%);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
90
|
+
export const IconWrapperResized = styled.span({
|
|
91
|
+
userSelect: 'none'
|
|
92
|
+
},
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
94
|
+
IconOverridesResized,
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
96
|
+
IconObjectOverridesResized);
|
|
97
|
+
|
|
52
98
|
// Wraps all emoji in Inline Links similar to icon
|
|
99
|
+
// Replace with EmojiWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
53
100
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
101
|
export const EmojiWrapper = styled.span({
|
|
55
102
|
display: 'inline-block',
|
|
@@ -61,6 +108,17 @@ IconOverrides,
|
|
|
61
108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
62
109
|
IconObjectOverrides);
|
|
63
110
|
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
112
|
+
export const EmojiWrapperResized = styled.span({
|
|
113
|
+
display: 'inline-block',
|
|
114
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
115
|
+
userSelect: 'none'
|
|
116
|
+
},
|
|
117
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
118
|
+
IconOverridesResized,
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
120
|
+
IconObjectOverridesResized);
|
|
121
|
+
|
|
64
122
|
// The main 'wrapping' element, title of the content.
|
|
65
123
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
66
124
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
@@ -97,6 +155,7 @@ export const IconPositionWrapper = styled.span({
|
|
|
97
155
|
display: 'inline-block'
|
|
98
156
|
});
|
|
99
157
|
|
|
158
|
+
// Replace with IconEmptyWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
100
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
101
160
|
export const IconEmptyWrapper = styled.span({
|
|
102
161
|
width: '14px',
|
|
@@ -105,6 +164,14 @@ export const IconEmptyWrapper = styled.span({
|
|
|
105
164
|
opacity: 0
|
|
106
165
|
});
|
|
107
166
|
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
168
|
+
export const IconEmptyWrapperResized = styled.span({
|
|
169
|
+
width: '16px',
|
|
170
|
+
height: '100%',
|
|
171
|
+
display: 'inline-block',
|
|
172
|
+
opacity: 0
|
|
173
|
+
});
|
|
174
|
+
|
|
108
175
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
109
176
|
// To achieve same result we use classname instead.
|
|
110
177
|
export const TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
@@ -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: "27.
|
|
10
|
+
packageVersion: "27.13.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: "27.
|
|
18
|
+
packageVersion: "27.13.1"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -20,9 +20,11 @@ import Action from '../action';
|
|
|
20
20
|
var getIconFF = function getIconFF() {
|
|
21
21
|
if (fg('platform.linking-platform.smart-card.hover-card-action-redesign')) {
|
|
22
22
|
if (fg('platform.linking-platform.smart-card.action-icon-redesign')) {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
23
24
|
return MediaServicesActualSizeIcon;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
26
28
|
return VidFullScreenOnIcon;
|
|
27
29
|
};
|
|
28
30
|
var PreviewAction = function PreviewAction(_ref) {
|
|
@@ -71,6 +73,7 @@ var PreviewAction = function PreviewAction(_ref) {
|
|
|
71
73
|
}
|
|
72
74
|
}, [analytics, data, invoke, onClickCallback]);
|
|
73
75
|
var isStackItem = props.as === 'stack-item';
|
|
76
|
+
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-20003
|
|
74
77
|
var Icon = isStackItem ? MediaServicesActualSizeIcon : getIconFF();
|
|
75
78
|
var tooltipMessage = isStackItem ? messages.preview_description : messages.preview_improved;
|
|
76
79
|
return data ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
5
|
-
import ChevronUpIcon from '@atlaskit/icon/
|
|
4
|
+
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
5
|
+
import ChevronUpIcon from '@atlaskit/icon/utility/migration/chevron-up';
|
|
6
6
|
import { Inline, Pressable, Stack, xcss } from '@atlaskit/primitives';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css } from '@emotion/react';
|
|
@@ -38,9 +38,11 @@ var RelatedUrlList = function RelatedUrlList(_ref) {
|
|
|
38
38
|
testId: "".concat(testId, "-expand-title"),
|
|
39
39
|
backgroundColor: "color.background.neutral.subtle",
|
|
40
40
|
"aria-expanded": !!isOpen,
|
|
41
|
-
padding: "space.0"
|
|
41
|
+
padding: "space.0",
|
|
42
|
+
paddingInlineEnd: "space.050"
|
|
42
43
|
}, /*#__PURE__*/React.createElement(Inline, {
|
|
43
44
|
alignBlock: "center",
|
|
45
|
+
space: "space.050",
|
|
44
46
|
spread: "space-between"
|
|
45
47
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
46
48
|
overrideCss: css({
|
|
@@ -50,8 +52,9 @@ var RelatedUrlList = function RelatedUrlList(_ref) {
|
|
|
50
52
|
descriptor: title
|
|
51
53
|
}
|
|
52
54
|
}), /*#__PURE__*/React.createElement(ChevronComponent, {
|
|
55
|
+
LEGACY_margin: "0 -4px",
|
|
53
56
|
label: getFormattedMessageAsString(intl, title),
|
|
54
|
-
|
|
57
|
+
color: "currentColor"
|
|
55
58
|
}))), isOpen && /*#__PURE__*/React.createElement(ResolvedResultsStack, {
|
|
56
59
|
resolvedResults: resolvedResults,
|
|
57
60
|
testId: testId,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
|
|
6
7
|
// TODO: Figure out a more scalable/responsive solution
|
|
@@ -21,6 +22,19 @@ export var Icon = styled.img({
|
|
|
21
22
|
transform: 'translate(-50%, -50%)'
|
|
22
23
|
});
|
|
23
24
|
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
|
+
export var IconResized = styled.img({
|
|
27
|
+
height: '16px',
|
|
28
|
+
width: '16px',
|
|
29
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
30
|
+
borderRadius: '2px',
|
|
31
|
+
userSelect: 'none',
|
|
32
|
+
position: 'absolute',
|
|
33
|
+
top: '50%',
|
|
34
|
+
left: '50%',
|
|
35
|
+
transform: 'translate(-50%, -50%)'
|
|
36
|
+
});
|
|
37
|
+
|
|
24
38
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
25
39
|
// are less than that in height/width.
|
|
26
40
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
@@ -40,8 +54,8 @@ export var Shimmer = function Shimmer(_ref) {
|
|
|
40
54
|
marginRight: "var(--ds-space-050, 4px)"
|
|
41
55
|
};
|
|
42
56
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
43
|
-
width: 14,
|
|
44
|
-
height: 14,
|
|
57
|
+
width: fg('linking-platform-increase-inline-card-icon-size') ? 16 : 14,
|
|
58
|
+
height: fg('linking-platform-increase-inline-card-icon-size') ? 16 : 14,
|
|
45
59
|
borderRadius: 2,
|
|
46
60
|
testId: testId
|
|
47
61
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -9,10 +9,11 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import ImageLoader from 'react-render-image';
|
|
12
|
-
import { Icon, Shimmer } from '../Icon';
|
|
13
|
-
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, TitleWrapper, EmojiWrapper, TitleWrapperClassName } from './styled';
|
|
12
|
+
import { Icon, IconResized, Shimmer } from '../Icon';
|
|
13
|
+
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, TitleWrapper, EmojiWrapper, TitleWrapperClassName, IconEmptyWrapperResized, IconWrapperResized, EmojiWrapperResized } from './styled';
|
|
14
14
|
import LinkIcon from '@atlaskit/icon/core/migration/link';
|
|
15
15
|
import { LinkAppearance, NoLinkAppearance } from '../styled';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
17
18
|
_inherits(IconAndTitleLayout, _React$Component);
|
|
18
19
|
var _super = _createSuper(IconAndTitleLayout);
|
|
@@ -51,12 +52,12 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
51
52
|
icon = _this$props.icon,
|
|
52
53
|
emoji = _this$props.emoji;
|
|
53
54
|
if (emoji) {
|
|
54
|
-
return /*#__PURE__*/React.createElement(EmojiWrapper, null, emoji);
|
|
55
|
+
return fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(EmojiWrapperResized, null, emoji) : /*#__PURE__*/React.createElement(EmojiWrapper, null, emoji);
|
|
55
56
|
}
|
|
56
57
|
if (!icon || typeof icon === 'string') {
|
|
57
58
|
return null;
|
|
58
59
|
}
|
|
59
|
-
return /*#__PURE__*/React.createElement(IconWrapper, null, icon);
|
|
60
|
+
return fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconWrapperResized, null, icon) : /*#__PURE__*/React.createElement(IconWrapper, null, icon);
|
|
60
61
|
}
|
|
61
62
|
}, {
|
|
62
63
|
key: "renderImageIcon",
|
|
@@ -65,15 +66,22 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
65
66
|
if (!url || typeof url !== 'string') {
|
|
66
67
|
return null;
|
|
67
68
|
}
|
|
69
|
+
var icon = fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconResized
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
71
|
+
, {
|
|
72
|
+
className: "smart-link-icon",
|
|
73
|
+
src: url,
|
|
74
|
+
"data-testid": "".concat(testId, "-image")
|
|
75
|
+
}) : /*#__PURE__*/React.createElement(Icon
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
|
+
, {
|
|
78
|
+
className: "smart-link-icon",
|
|
79
|
+
src: url,
|
|
80
|
+
"data-testid": "".concat(testId, "-image")
|
|
81
|
+
});
|
|
68
82
|
return /*#__PURE__*/React.createElement(ImageLoader, {
|
|
69
83
|
src: url,
|
|
70
|
-
loaded:
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
72
|
-
, {
|
|
73
|
-
className: "smart-link-icon",
|
|
74
|
-
src: url,
|
|
75
|
-
"data-testid": "".concat(testId, "-image")
|
|
76
|
-
}),
|
|
84
|
+
loaded: icon,
|
|
77
85
|
errored: errored,
|
|
78
86
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
79
87
|
testId: "".concat(testId, "-loading")
|
|
@@ -87,7 +95,14 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
87
95
|
if (defaultIcon) {
|
|
88
96
|
return /*#__PURE__*/React.createElement(IconWrapper, null, defaultIcon);
|
|
89
97
|
}
|
|
90
|
-
return
|
|
98
|
+
return fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconWrapperResized, {
|
|
99
|
+
"data-testid": "".concat(testId, "-default")
|
|
100
|
+
}, /*#__PURE__*/React.createElement(LinkIcon, {
|
|
101
|
+
label: "link",
|
|
102
|
+
LEGACY_size: "small",
|
|
103
|
+
testId: "".concat(testId, "-default"),
|
|
104
|
+
color: "currentColor"
|
|
105
|
+
})) : /*#__PURE__*/React.createElement(IconWrapper, null, /*#__PURE__*/React.createElement(LinkIcon, {
|
|
91
106
|
label: "link",
|
|
92
107
|
LEGACY_size: "small",
|
|
93
108
|
testId: "".concat(testId, "-default"),
|
|
@@ -121,7 +136,12 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
121
136
|
rightSide = _this$props2.rightSide,
|
|
122
137
|
_this$props2$testId = _this$props2.testId,
|
|
123
138
|
testId = _this$props2$testId === void 0 ? 'inline-card-icon-and-title' : _this$props2$testId;
|
|
124
|
-
var
|
|
139
|
+
var iconPart = fg('linking-platform-increase-inline-card-icon-size') ? /*#__PURE__*/React.createElement(IconPositionWrapper, {
|
|
140
|
+
"data-testid": "icon-position-wrapper"
|
|
141
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperResized, {
|
|
142
|
+
"data-testid": "icon-empty-wrapper"
|
|
143
|
+
}), this.renderIcon(testId))) : /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId)));
|
|
144
|
+
var titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, iconPart, /*#__PURE__*/React.createElement(TitleWrapper
|
|
125
145
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
126
146
|
, {
|
|
127
147
|
style: {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
4
|
+
// Replace with IconObjectOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
4
5
|
export var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 3px;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
6
|
+
|
|
5
7
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
8
|
+
// Replace with IconOverridesResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
6
9
|
export var IconOverrides = "\n\n & > * > span {\n height: 16px;\n width: 14px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
7
10
|
|
|
8
11
|
// Wraps all icons represented in Inline Links. Icons have three sources/types:
|
|
@@ -11,6 +14,7 @@ export var IconOverrides = "\n\n & > * > span {\n height: 16px;\n width:
|
|
|
11
14
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
12
15
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
13
16
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
17
|
+
// Replace with IconWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
14
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
15
19
|
export var IconWrapper = styled.span({
|
|
16
20
|
userSelect: 'none'
|
|
@@ -20,7 +24,23 @@ IconOverrides,
|
|
|
20
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
25
|
IconObjectOverrides);
|
|
22
26
|
|
|
27
|
+
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
28
|
+
export var IconObjectOverridesResized = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
29
|
+
|
|
30
|
+
// TODO: remove this override behaviour for @atlaskit/icon
|
|
31
|
+
export var IconOverridesResized = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
34
|
+
export var IconWrapperResized = styled.span({
|
|
35
|
+
userSelect: 'none'
|
|
36
|
+
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
|
+
IconOverridesResized,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
+
IconObjectOverridesResized);
|
|
41
|
+
|
|
23
42
|
// Wraps all emoji in Inline Links similar to icon
|
|
43
|
+
// Replace with EmojiWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
24
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
25
45
|
export var EmojiWrapper = styled.span({
|
|
26
46
|
display: 'inline-block',
|
|
@@ -32,6 +52,17 @@ IconOverrides,
|
|
|
32
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
53
|
IconObjectOverrides);
|
|
34
54
|
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
56
|
+
export var EmojiWrapperResized = styled.span({
|
|
57
|
+
display: 'inline-block',
|
|
58
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
59
|
+
userSelect: 'none'
|
|
60
|
+
},
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
62
|
+
IconOverridesResized,
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
|
+
IconObjectOverridesResized);
|
|
65
|
+
|
|
35
66
|
// The main 'wrapping' element, title of the content.
|
|
36
67
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
37
68
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
@@ -68,6 +99,7 @@ export var IconPositionWrapper = styled.span({
|
|
|
68
99
|
display: 'inline-block'
|
|
69
100
|
});
|
|
70
101
|
|
|
102
|
+
// Replace with IconEmptyWrapperResized during linking-platform-increase-inline-card-icon-size cleanup (EDM=10529)
|
|
71
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
72
104
|
export var IconEmptyWrapper = styled.span({
|
|
73
105
|
width: '14px',
|
|
@@ -76,6 +108,14 @@ export var IconEmptyWrapper = styled.span({
|
|
|
76
108
|
opacity: 0
|
|
77
109
|
});
|
|
78
110
|
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
112
|
+
export var IconEmptyWrapperResized = styled.span({
|
|
113
|
+
width: '16px',
|
|
114
|
+
height: '100%',
|
|
115
|
+
display: 'inline-block',
|
|
116
|
+
opacity: 0
|
|
117
|
+
});
|
|
118
|
+
|
|
79
119
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
80
120
|
// To achieve same result we use classname instead.
|
|
81
121
|
export var TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
@@ -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: "27.
|
|
13
|
+
packageVersion: "27.13.1",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
|
@@ -3,6 +3,10 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: React.ElementType<any> | undefined;
|
|
5
5
|
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
|
+
export declare const IconResized: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: React.ElementType<any> | undefined;
|
|
9
|
+
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
10
|
export declare const AKIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
as?: React.ElementType<any> | undefined;
|
|
@@ -5,10 +5,20 @@ export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
7
7
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
8
|
+
export declare const IconObjectOverridesResized = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
9
|
+
export declare const IconOverridesResized = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
10
|
+
export declare const IconWrapperResized: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
8
14
|
export declare const EmojiWrapper: import("@emotion/styled").StyledComponent<{
|
|
9
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
16
|
as?: import("react").ElementType<any> | undefined;
|
|
11
17
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
18
|
+
export declare const EmojiWrapperResized: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
12
22
|
export declare const IconTitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
13
23
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
24
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -29,6 +39,10 @@ export declare const IconEmptyWrapper: import("@emotion/styled").StyledComponent
|
|
|
29
39
|
theme?: import("@emotion/react").Theme | undefined;
|
|
30
40
|
as?: import("react").ElementType<any> | undefined;
|
|
31
41
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
42
|
+
export declare const IconEmptyWrapperResized: import("@emotion/styled").StyledComponent<{
|
|
43
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
|
45
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
32
46
|
export declare const TitleWrapperClassName = "smart-link-title-wrapper";
|
|
33
47
|
export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
34
48
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -3,6 +3,10 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: React.ElementType<any> | undefined;
|
|
5
5
|
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
|
+
export declare const IconResized: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: React.ElementType<any> | undefined;
|
|
9
|
+
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
6
10
|
export declare const AKIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
12
|
as?: React.ElementType<any> | undefined;
|
|
@@ -5,10 +5,20 @@ export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
7
7
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
8
|
+
export declare const IconObjectOverridesResized = "\n & > span {\n height: 16px;\n width: 16px;\n position: absolute;\n top: 3px;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
9
|
+
export declare const IconOverridesResized = "\n & > * > span {\n height: 16px;\n width: 16px;\n position: absolute;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
10
|
+
export declare const IconWrapperResized: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
8
14
|
export declare const EmojiWrapper: import("@emotion/styled").StyledComponent<{
|
|
9
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
16
|
as?: import("react").ElementType<any> | undefined;
|
|
11
17
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
18
|
+
export declare const EmojiWrapperResized: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
12
22
|
export declare const IconTitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
13
23
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
24
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -29,6 +39,10 @@ export declare const IconEmptyWrapper: import("@emotion/styled").StyledComponent
|
|
|
29
39
|
theme?: import("@emotion/react").Theme | undefined;
|
|
30
40
|
as?: import("react").ElementType<any> | undefined;
|
|
31
41
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
42
|
+
export declare const IconEmptyWrapperResized: import("@emotion/styled").StyledComponent<{
|
|
43
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
|
45
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
32
46
|
export declare const TitleWrapperClassName = "smart-link-title-wrapper";
|
|
33
47
|
export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
34
48
|
theme?: import("@emotion/react").Theme | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.13.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
33
|
-
"@atlaskit/analytics-next": "^
|
|
33
|
+
"@atlaskit/analytics-next": "^10.0.0",
|
|
34
34
|
"@atlaskit/avatar": "^21.12.0",
|
|
35
35
|
"@atlaskit/avatar-group": "^9.9.0",
|
|
36
36
|
"@atlaskit/badge": "^16.3.0",
|
|
37
37
|
"@atlaskit/button": "^19.1.0",
|
|
38
|
-
"@atlaskit/checkbox": "^13.
|
|
38
|
+
"@atlaskit/checkbox": "^13.6.0",
|
|
39
39
|
"@atlaskit/dropdown-menu": "^12.15.0",
|
|
40
40
|
"@atlaskit/form": "^10.4.0",
|
|
41
41
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
45
45
|
"@atlaskit/icon-object": "^6.4.0",
|
|
46
46
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
47
|
-
"@atlaskit/link-analytics": "^8.
|
|
48
|
-
"@atlaskit/link-client-extension": "^1.
|
|
49
|
-
"@atlaskit/link-extractors": "^1.
|
|
50
|
-
"@atlaskit/linking-common": "^5.
|
|
51
|
-
"@atlaskit/linking-types": "^8.
|
|
47
|
+
"@atlaskit/link-analytics": "^8.4.0",
|
|
48
|
+
"@atlaskit/link-client-extension": "^1.13.0",
|
|
49
|
+
"@atlaskit/link-extractors": "^1.6.0",
|
|
50
|
+
"@atlaskit/linking-common": "^5.9.0",
|
|
51
|
+
"@atlaskit/linking-types": "^8.13.0",
|
|
52
52
|
"@atlaskit/logo": "^14.1.0",
|
|
53
53
|
"@atlaskit/lozenge": "^11.9.0",
|
|
54
54
|
"@atlaskit/menu": "^2.9.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@af/visual-regression": "*",
|
|
94
94
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
95
95
|
"@atlaskit/css-reset": "^6.9.0",
|
|
96
|
-
"@atlaskit/link-test-helpers": "^7.
|
|
96
|
+
"@atlaskit/link-test-helpers": "^7.2.0",
|
|
97
97
|
"@atlaskit/media-test-helpers": "^34.0.0",
|
|
98
98
|
"@atlaskit/ssr": "*",
|
|
99
99
|
"@atlaskit/visual-regression": "*",
|
|
@@ -183,6 +183,9 @@
|
|
|
183
183
|
},
|
|
184
184
|
"platform.linking-platform.smart-card.enable-view-related-urls-action": {
|
|
185
185
|
"type": "boolean"
|
|
186
|
+
},
|
|
187
|
+
"linking-platform-increase-inline-card-icon-size": {
|
|
188
|
+
"type": "boolean"
|
|
186
189
|
}
|
|
187
190
|
}
|
|
188
191
|
}
|