@atlaskit/smart-card 35.1.3 → 35.1.4
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/FlexibleCard/components/blocks/action-block/index.js +5 -2
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.compiled.css +1 -0
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +8 -4
- package/dist/cjs/view/HoverCard/components/views/resolved/index.compiled.css +3 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +11 -6
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.compiled.css +3 -0
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +6 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +5 -2
- package/dist/es2019/view/HoverCard/components/ImagePreview.js +1 -1
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.compiled.css +1 -0
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +8 -4
- package/dist/es2019/view/HoverCard/components/views/resolved/index.compiled.css +3 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +11 -6
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.compiled.css +3 -0
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +6 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +5 -2
- package/dist/esm/view/HoverCard/components/ImagePreview.js +1 -1
- package/dist/esm/view/HoverCard/components/views/forbidden/index.compiled.css +1 -0
- package/dist/esm/view/HoverCard/components/views/forbidden/index.js +8 -4
- package/dist/esm/view/HoverCard/components/views/resolved/index.compiled.css +3 -0
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +11 -6
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.compiled.css +3 -0
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +6 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 35.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#119985](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119985)
|
|
8
|
+
[`7f921d5d72c34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f921d5d72c34) -
|
|
9
|
+
[ux] Hovercard token ui redesign under FF
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 35.1.3
|
|
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.1.
|
|
14
|
+
packageVersion: "35.1.4"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -59,6 +59,7 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
59
59
|
onClickCallback = _ref.onClick,
|
|
60
60
|
size = _ref.size,
|
|
61
61
|
spaceInline = _ref.spaceInline,
|
|
62
|
+
className = _ref.className,
|
|
62
63
|
_ref$testId = _ref.testId,
|
|
63
64
|
testId = _ref$testId === void 0 ? 'smart-block-action' : _ref$testId;
|
|
64
65
|
var context = (0, _flexibleUiContext.useFlexibleUiContext)();
|
|
@@ -111,8 +112,10 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
111
112
|
}, [context === null || context === void 0 ? void 0 : context.actions, _onClick, onError, padding, size, spaceInline, isLoading, onLoadingChange]);
|
|
112
113
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
113
114
|
ref: blockRef,
|
|
114
|
-
"data-testid": testId
|
|
115
|
-
|
|
115
|
+
"data-testid": testId
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
117
|
+
,
|
|
118
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g" : "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g", className])
|
|
116
119
|
}, actions, /*#__PURE__*/React.createElement(_actionFooter.ActionFooter, {
|
|
117
120
|
message: message,
|
|
118
121
|
testId: testId
|
|
@@ -39,7 +39,7 @@ var ImagePreviewNew = function ImagePreviewNew(_ref) {
|
|
|
39
39
|
setDynamicStyles(_objectSpread({
|
|
40
40
|
borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
|
|
41
41
|
borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
|
|
42
|
-
marginBottom: '0.5rem'
|
|
42
|
+
marginBottom: (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "var(--ds-space-100, 8px)" : '0.5rem'
|
|
43
43
|
}, previewHeight ? {
|
|
44
44
|
height: "".concat(previewHeight, "px")
|
|
45
45
|
} : {}));
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
._1e0c1nu9{display:inline}
|
|
7
7
|
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
8
8
|
._otyrcxkx{margin-bottom:var(--ds-space-100,.5rem)}
|
|
9
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
9
10
|
._qrwqpd34{border-top-right-radius:var(--ds-border-radius-200,8px)}
|
|
10
11
|
._y3gn1h6o{text-align:center}
|
|
@@ -25,9 +25,13 @@ var _blocks = require("../../../../FlexibleCard/components/blocks");
|
|
|
25
25
|
var _HoverCardForbiddenViewOld = _interopRequireDefault(require("./HoverCardForbiddenViewOld"));
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
|
+
var titleBlockStylesOld = null;
|
|
28
29
|
var titleBlockStyles = null;
|
|
30
|
+
var mainTextStylesOld = null;
|
|
29
31
|
var mainTextStyles = null;
|
|
32
|
+
var connectButtonStylesOld = null;
|
|
30
33
|
var connectButtonStyles = null;
|
|
34
|
+
var basePreviewStylesOld = null;
|
|
31
35
|
var basePreviewStyles = null;
|
|
32
36
|
var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
33
37
|
var _cardState$details, _cardState$details2, _extractProvider$text, _extractProvider, _extractRequestAccess;
|
|
@@ -61,11 +65,11 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
61
65
|
ignoreContainerPadding: true,
|
|
62
66
|
testId: testId,
|
|
63
67
|
status: _constants.SmartLinkStatus.Forbidden,
|
|
64
|
-
className: (0, _runtime.ax)(["_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
68
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_13lipd34 _qrwqpd34 _otyru2gc" : "_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
65
69
|
}), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
66
70
|
testId: "".concat(testId, "-title"),
|
|
67
71
|
status: _constants.SmartLinkStatus.Forbidden,
|
|
68
|
-
className: (0, _runtime.ax)(["_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
72
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_1bah1h6o _k48p1pd9 _19pku2gc" : "_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
69
73
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages[titleMessageKey], {
|
|
70
74
|
values: {
|
|
71
75
|
product: product
|
|
@@ -73,7 +77,7 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
73
77
|
}))), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
74
78
|
testId: "".concat(testId, "-content"),
|
|
75
79
|
status: _constants.SmartLinkStatus.Forbidden,
|
|
76
|
-
className: (0, _runtime.ax)(["_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
80
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o" : "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
77
81
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages[descriptiveMessageKey], {
|
|
78
82
|
values: {
|
|
79
83
|
product: product,
|
|
@@ -81,7 +85,7 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
81
85
|
}
|
|
82
86
|
}))), action && /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
83
87
|
status: _constants.SmartLinkStatus.Forbidden,
|
|
84
|
-
className: (0, _runtime.ax)(["_1bah1h6o _19pku2gc"])
|
|
88
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_1bah1h6o _19pku2gc" : "_1bah1h6o _19pku2gc"])
|
|
85
89
|
}, /*#__PURE__*/React.createElement(_button.default, {
|
|
86
90
|
testId: "".concat(testId, "-button"),
|
|
87
91
|
onClick: action === null || action === void 0 ? void 0 : action.promise,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
._2aco1vlj [data-smart-element-group]{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._quenui7n [data-smart-element-group]{gap:.06rem}
|
|
4
|
+
._quenze3t [data-smart-element-group]{gap:var(--ds-space-0,0)}
|
|
4
5
|
._zulpidpf{gap:0}
|
|
5
6
|
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
6
7
|
._1ljqu2gc [data-separator]+[data-separator]:before{margin-right:var(--ds-space-100,8px)}
|
|
7
8
|
._3tmpcxkx [data-smart-element-group]:nth-of-type(2)>span{margin-left:var(--ds-space-100,.5rem)}
|
|
8
9
|
._3um015vq{visibility:hidden}
|
|
10
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
9
11
|
._fmt31ohn [data-smart-element-group]:first-of-type{flex-grow:7}
|
|
10
12
|
._ia0l11wp [data-smart-element-group]:nth-of-type(2){flex-grow:3}
|
|
11
13
|
._kqswstnw{position:absolute}
|
|
14
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
12
15
|
._oebj1txw [data-smart-element-group]{display:flex}
|
|
13
16
|
._w3mucxkx [data-smart-element-group]:first-of-type>span{margin-right:var(--ds-space-100,.5rem)}
|
|
14
17
|
._x7z0u2gc [data-smart-element-group]>[data-smart-element-group]>span{margin-right:var(--ds-space-100,8px)}
|
|
@@ -23,12 +23,15 @@ var _HoverCardResolvedViewOld = _interopRequireDefault(require("./HoverCardResol
|
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
var hiddenSnippetStyles = null;
|
|
26
|
-
var
|
|
26
|
+
var metadataBlockCssOld = null;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Moved from HoverCardContent.tsx due to CompiledCSS migration.
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var titleBlockStyleOld = null;
|
|
32
|
+
var titleBlockStyles = null;
|
|
33
|
+
var snippetBlockCss = null;
|
|
34
|
+
var actionBlockCss = null;
|
|
32
35
|
var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
33
36
|
var _cardState$details;
|
|
34
37
|
var cardState = _ref.cardState,
|
|
@@ -73,20 +76,21 @@ var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
|
73
76
|
fallbackElementHeight: snippetHeight.current
|
|
74
77
|
});
|
|
75
78
|
var snippet = imagePreview ? null : /*#__PURE__*/_react.default.createElement(_blocks.SnippetBlock, {
|
|
76
|
-
status: _constants.SmartLinkStatus.Resolved
|
|
79
|
+
status: _constants.SmartLinkStatus.Resolved,
|
|
80
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_ca0q1b66"])
|
|
77
81
|
});
|
|
78
82
|
var aiSummaryMinHeight = snippet ? snippetHeight.current : 0;
|
|
79
83
|
return /*#__PURE__*/_react.default.createElement(_FlexibleCard.default, flexibleCardProps, imagePreview, /*#__PURE__*/_react.default.createElement(_blocks.TitleBlock, (0, _extends2.default)({}, titleBlockProps, {
|
|
80
84
|
metadataPosition: _constants.SmartLinkPosition.Top,
|
|
81
85
|
status: _constants.SmartLinkStatus.Resolved,
|
|
82
|
-
className: (0, _runtime.ax)(["_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
86
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_zulpu2gc _quenze3t _oebj1txw _13mh1pd9" : "_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
83
87
|
})), /*#__PURE__*/_react.default.createElement(_blocks.MetadataBlock, {
|
|
84
88
|
primary: primary,
|
|
85
89
|
secondary: secondary,
|
|
86
90
|
maxLines: 1,
|
|
87
91
|
size: _constants.SmartLinkSize.Medium,
|
|
88
92
|
status: _constants.SmartLinkStatus.Resolved,
|
|
89
|
-
className: (0, _runtime.ax)(["_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
93
|
+
className: (0, _runtime.ax)([!(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
90
94
|
}), isAISummaryEnabled ? /*#__PURE__*/_react.default.createElement(_blocks.AISummaryBlock, {
|
|
91
95
|
aiSummaryMinHeight: aiSummaryMinHeight,
|
|
92
96
|
placeholder: snippet,
|
|
@@ -99,7 +103,8 @@ var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
|
99
103
|
className: (0, _runtime.ax)(["_3um015vq _kqswstnw"])
|
|
100
104
|
}), /*#__PURE__*/_react.default.createElement(_blocks.ActionBlock, {
|
|
101
105
|
onClick: onActionClick,
|
|
102
|
-
spaceInline: "space.100"
|
|
106
|
+
spaceInline: "space.100",
|
|
107
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && "_n3td1b66"])
|
|
103
108
|
}), /*#__PURE__*/_react.default.createElement(_blocks.AIFooterBlock, null));
|
|
104
109
|
};
|
|
105
110
|
var HoverCardResolvedView = function HoverCardResolvedView(props) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp5l1i{gap:.5rem .5rem}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
4
|
+
._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
3
5
|
._19pkcxkx{margin-top:var(--ds-space-100,.5rem)}
|
|
6
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
7
|
._1bahesu3{justify-content:flex-end}
|
|
5
8
|
._bpsp1wq8 a{font-weight:var(--ds-font-weight-medium,500)}
|
|
@@ -28,8 +28,11 @@ var _elements = require("../../../../FlexibleCard/components/elements");
|
|
|
28
28
|
var _HoverCardUnauthorisedViewOld = _interopRequireDefault(require("./HoverCardUnauthorisedViewOld"));
|
|
29
29
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
30
30
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
31
|
+
var connectButtonStylesOld = null;
|
|
31
32
|
var connectButtonStyles = null;
|
|
33
|
+
var titleBlockStylesOld = null;
|
|
32
34
|
var titleBlockStyles = null;
|
|
35
|
+
var mainTextStylesOld = null;
|
|
33
36
|
var mainTextStyles = null;
|
|
34
37
|
var HoverCardUnauthorisedViewNew = function HoverCardUnauthorisedViewNew(_ref) {
|
|
35
38
|
var _cardState$details, _extractProvider;
|
|
@@ -68,20 +71,20 @@ var HoverCardUnauthorisedViewNew = function HoverCardUnauthorisedViewNew(_ref) {
|
|
|
68
71
|
testId: testId
|
|
69
72
|
}), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
70
73
|
testId: "".concat(testId, "-title"),
|
|
71
|
-
className: (0, _runtime.ax)(["_zulp5l1i _bpsp1wq8"])
|
|
74
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9" : "_zulp5l1i _bpsp1wq8"])
|
|
72
75
|
}, /*#__PURE__*/React.createElement(_elements.LinkIcon, null), /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_link_account_card_name, {
|
|
73
76
|
values: {
|
|
74
77
|
context: providerName
|
|
75
78
|
}
|
|
76
79
|
}))), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
77
80
|
testId: "".concat(testId, "-content"),
|
|
78
|
-
className: (0, _runtime.ax)(["_11c8qk37 _19pkcxkx"])
|
|
81
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_11c8qk37 _19pku2gc" : "_11c8qk37 _19pkcxkx"])
|
|
79
82
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_UnauthorisedViewContent.default, {
|
|
80
83
|
providerName: providerName,
|
|
81
84
|
isProductIntegrationSupported: isProductIntegrationSupported
|
|
82
85
|
}))), /*#__PURE__*/React.createElement(_blocks.CustomBlock, {
|
|
83
86
|
testId: "".concat(testId, "-button"),
|
|
84
|
-
className: (0, _runtime.ax)(["_1bahesu3 _19pkcxkx"])
|
|
87
|
+
className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? "_1bahesu3 _19pku2gc" : "_1bahesu3 _19pkcxkx"])
|
|
85
88
|
}, /*#__PURE__*/React.createElement(_actionGroup.default, {
|
|
86
89
|
items: actions,
|
|
87
90
|
appearance: "primary"
|
|
@@ -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.1.
|
|
23
|
+
packageVersion: "35.1.4",
|
|
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.1.
|
|
5
|
+
packageVersion: "35.1.4"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -48,6 +48,7 @@ const ActionBlockNew = ({
|
|
|
48
48
|
onClick: onClickCallback,
|
|
49
49
|
size,
|
|
50
50
|
spaceInline,
|
|
51
|
+
className,
|
|
51
52
|
testId = 'smart-block-action'
|
|
52
53
|
}) => {
|
|
53
54
|
const context = useFlexibleUiContext();
|
|
@@ -92,8 +93,10 @@ const ActionBlockNew = ({
|
|
|
92
93
|
}, [context === null || context === void 0 ? void 0 : context.actions, onClick, onError, padding, size, spaceInline, isLoading, onLoadingChange]);
|
|
93
94
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
94
95
|
ref: blockRef,
|
|
95
|
-
"data-testid": testId
|
|
96
|
-
|
|
96
|
+
"data-testid": testId
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
98
|
+
,
|
|
99
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g" : "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g", className])
|
|
97
100
|
}, actions, /*#__PURE__*/React.createElement(ActionFooter, {
|
|
98
101
|
message: message,
|
|
99
102
|
testId: testId
|
|
@@ -20,7 +20,7 @@ const ImagePreviewNew = ({
|
|
|
20
20
|
setDynamicStyles({
|
|
21
21
|
borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
|
|
22
22
|
borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
|
|
23
|
-
marginBottom: '0.5rem',
|
|
23
|
+
marginBottom: fg('platform-linking-visual-refresh-v1') ? "var(--ds-space-100, 8px)" : '0.5rem',
|
|
24
24
|
...(previewHeight ? {
|
|
25
25
|
height: `${previewHeight}px`
|
|
26
26
|
} : {})
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
._1e0c1nu9{display:inline}
|
|
7
7
|
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
8
8
|
._otyrcxkx{margin-bottom:var(--ds-space-100,.5rem)}
|
|
9
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
9
10
|
._qrwqpd34{border-top-right-radius:var(--ds-border-radius-200,8px)}
|
|
10
11
|
._y3gn1h6o{text-align:center}
|
|
@@ -15,9 +15,13 @@ import { messages } from '../../../../../messages';
|
|
|
15
15
|
import FlexibleCard from '../../../../FlexibleCard';
|
|
16
16
|
import { CustomBlock, PreviewBlock } from '../../../../FlexibleCard/components/blocks';
|
|
17
17
|
import HoverCardForbiddenViewOld from './HoverCardForbiddenViewOld';
|
|
18
|
+
const titleBlockStylesOld = null;
|
|
18
19
|
const titleBlockStyles = null;
|
|
20
|
+
const mainTextStylesOld = null;
|
|
19
21
|
const mainTextStyles = null;
|
|
22
|
+
const connectButtonStylesOld = null;
|
|
20
23
|
const connectButtonStyles = null;
|
|
24
|
+
const basePreviewStylesOld = null;
|
|
21
25
|
const basePreviewStyles = null;
|
|
22
26
|
const HoverCardForbiddenViewNew = ({
|
|
23
27
|
flexibleCardProps,
|
|
@@ -55,11 +59,11 @@ const HoverCardForbiddenViewNew = ({
|
|
|
55
59
|
ignoreContainerPadding: true,
|
|
56
60
|
testId: testId,
|
|
57
61
|
status: SmartLinkStatus.Forbidden,
|
|
58
|
-
className: ax(["_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
62
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_13lipd34 _qrwqpd34 _otyru2gc" : "_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
59
63
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
60
64
|
testId: `${testId}-title`,
|
|
61
65
|
status: SmartLinkStatus.Forbidden,
|
|
62
|
-
className: ax(["_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
66
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bah1h6o _k48p1pd9 _19pku2gc" : "_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
63
67
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[titleMessageKey], {
|
|
64
68
|
values: {
|
|
65
69
|
product
|
|
@@ -67,7 +71,7 @@ const HoverCardForbiddenViewNew = ({
|
|
|
67
71
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
68
72
|
testId: `${testId}-content`,
|
|
69
73
|
status: SmartLinkStatus.Forbidden,
|
|
70
|
-
className: ax(["_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
74
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o" : "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
71
75
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[descriptiveMessageKey], {
|
|
72
76
|
values: {
|
|
73
77
|
product,
|
|
@@ -75,7 +79,7 @@ const HoverCardForbiddenViewNew = ({
|
|
|
75
79
|
}
|
|
76
80
|
}))), action && /*#__PURE__*/React.createElement(CustomBlock, {
|
|
77
81
|
status: SmartLinkStatus.Forbidden,
|
|
78
|
-
className: ax(["_1bah1h6o _19pku2gc"])
|
|
82
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bah1h6o _19pku2gc" : "_1bah1h6o _19pku2gc"])
|
|
79
83
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
80
84
|
testId: `${testId}-button`,
|
|
81
85
|
onClick: action === null || action === void 0 ? void 0 : action.promise,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
._2aco1vlj [data-smart-element-group]{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._quenui7n [data-smart-element-group]{gap:.06rem}
|
|
4
|
+
._quenze3t [data-smart-element-group]{gap:var(--ds-space-0,0)}
|
|
4
5
|
._zulpidpf{gap:0}
|
|
5
6
|
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
6
7
|
._1ljqu2gc [data-separator]+[data-separator]:before{margin-right:var(--ds-space-100,8px)}
|
|
7
8
|
._3tmpcxkx [data-smart-element-group]:nth-of-type(2)>span{margin-left:var(--ds-space-100,.5rem)}
|
|
8
9
|
._3um015vq{visibility:hidden}
|
|
10
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
9
11
|
._fmt31ohn [data-smart-element-group]:first-of-type{flex-grow:7}
|
|
10
12
|
._ia0l11wp [data-smart-element-group]:nth-of-type(2){flex-grow:3}
|
|
11
13
|
._kqswstnw{position:absolute}
|
|
14
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
12
15
|
._oebj1txw [data-smart-element-group]{display:flex}
|
|
13
16
|
._w3mucxkx [data-smart-element-group]:first-of-type>span{margin-right:var(--ds-space-100,.5rem)}
|
|
14
17
|
._x7z0u2gc [data-smart-element-group]>[data-smart-element-group]>span{margin-right:var(--ds-space-100,8px)}
|
|
@@ -13,12 +13,15 @@ import { getMetadata } from '../../../utils';
|
|
|
13
13
|
import ImagePreview from '../../ImagePreview';
|
|
14
14
|
import HoverCardResolvedViewOld from './HoverCardResolvedViewOld';
|
|
15
15
|
const hiddenSnippetStyles = null;
|
|
16
|
-
const
|
|
16
|
+
const metadataBlockCssOld = null;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Moved from HoverCardContent.tsx due to CompiledCSS migration.
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const titleBlockStyleOld = null;
|
|
22
|
+
const titleBlockStyles = null;
|
|
23
|
+
const snippetBlockCss = null;
|
|
24
|
+
const actionBlockCss = null;
|
|
22
25
|
const HoverCardResolvedViewNew = ({
|
|
23
26
|
cardState,
|
|
24
27
|
extensionKey,
|
|
@@ -66,20 +69,21 @@ const HoverCardResolvedViewNew = ({
|
|
|
66
69
|
fallbackElementHeight: snippetHeight.current
|
|
67
70
|
});
|
|
68
71
|
const snippet = imagePreview ? null : /*#__PURE__*/React.createElement(SnippetBlock, {
|
|
69
|
-
status: SmartLinkStatus.Resolved
|
|
72
|
+
status: SmartLinkStatus.Resolved,
|
|
73
|
+
className: ax([fg('platform-linking-visual-refresh-v1') && "_ca0q1b66"])
|
|
70
74
|
});
|
|
71
75
|
const aiSummaryMinHeight = snippet ? snippetHeight.current : 0;
|
|
72
76
|
return /*#__PURE__*/React.createElement(FlexibleCard, flexibleCardProps, imagePreview, /*#__PURE__*/React.createElement(TitleBlock, _extends({}, titleBlockProps, {
|
|
73
77
|
metadataPosition: SmartLinkPosition.Top,
|
|
74
78
|
status: SmartLinkStatus.Resolved,
|
|
75
|
-
className: ax(["_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
79
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _quenze3t _oebj1txw _13mh1pd9" : "_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
76
80
|
})), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
77
81
|
primary: primary,
|
|
78
82
|
secondary: secondary,
|
|
79
83
|
maxLines: 1,
|
|
80
84
|
size: SmartLinkSize.Medium,
|
|
81
85
|
status: SmartLinkStatus.Resolved,
|
|
82
|
-
className: ax(["_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
86
|
+
className: ax([!fg('platform-linking-visual-refresh-v1') && "_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
83
87
|
}), isAISummaryEnabled ? /*#__PURE__*/React.createElement(AISummaryBlock, {
|
|
84
88
|
aiSummaryMinHeight: aiSummaryMinHeight,
|
|
85
89
|
placeholder: snippet,
|
|
@@ -92,7 +96,8 @@ const HoverCardResolvedViewNew = ({
|
|
|
92
96
|
className: ax(["_3um015vq _kqswstnw"])
|
|
93
97
|
}), /*#__PURE__*/React.createElement(ActionBlock, {
|
|
94
98
|
onClick: onActionClick,
|
|
95
|
-
spaceInline: "space.100"
|
|
99
|
+
spaceInline: "space.100",
|
|
100
|
+
className: ax([fg('platform-linking-visual-refresh-v1') && "_n3td1b66"])
|
|
96
101
|
}), /*#__PURE__*/React.createElement(AIFooterBlock, null));
|
|
97
102
|
};
|
|
98
103
|
const HoverCardResolvedView = props => {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp5l1i{gap:.5rem .5rem}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
4
|
+
._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
3
5
|
._19pkcxkx{margin-top:var(--ds-space-100,.5rem)}
|
|
6
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
7
|
._1bahesu3{justify-content:flex-end}
|
|
5
8
|
._bpsp1wq8 a{font-weight:var(--ds-font-weight-medium,500)}
|
|
@@ -18,8 +18,11 @@ import { CustomBlock } from '../../../../FlexibleCard/components/blocks';
|
|
|
18
18
|
import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
|
|
19
19
|
import { LinkIcon } from '../../../../FlexibleCard/components/elements';
|
|
20
20
|
import HoverCardUnauthorisedViewOld from './HoverCardUnauthorisedViewOld';
|
|
21
|
+
const connectButtonStylesOld = null;
|
|
21
22
|
const connectButtonStyles = null;
|
|
23
|
+
const titleBlockStylesOld = null;
|
|
22
24
|
const titleBlockStyles = null;
|
|
25
|
+
const mainTextStylesOld = null;
|
|
23
26
|
const mainTextStyles = null;
|
|
24
27
|
const HoverCardUnauthorisedViewNew = ({
|
|
25
28
|
id = '',
|
|
@@ -59,20 +62,20 @@ const HoverCardUnauthorisedViewNew = ({
|
|
|
59
62
|
testId: testId
|
|
60
63
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
61
64
|
testId: `${testId}-title`,
|
|
62
|
-
className: ax(["_zulp5l1i _bpsp1wq8"])
|
|
65
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9" : "_zulp5l1i _bpsp1wq8"])
|
|
63
66
|
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
64
67
|
values: {
|
|
65
68
|
context: providerName
|
|
66
69
|
}
|
|
67
70
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
68
71
|
testId: `${testId}-content`,
|
|
69
|
-
className: ax(["_11c8qk37 _19pkcxkx"])
|
|
72
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c8qk37 _19pku2gc" : "_11c8qk37 _19pkcxkx"])
|
|
70
73
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
71
74
|
providerName: providerName,
|
|
72
75
|
isProductIntegrationSupported: isProductIntegrationSupported
|
|
73
76
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
74
77
|
testId: `${testId}-button`,
|
|
75
|
-
className: ax(["_1bahesu3 _19pkcxkx"])
|
|
78
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bahesu3 _19pku2gc" : "_1bahesu3 _19pkcxkx"])
|
|
76
79
|
}, /*#__PURE__*/React.createElement(ActionGroup, {
|
|
77
80
|
items: actions,
|
|
78
81
|
appearance: "primary"
|
|
@@ -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.1.
|
|
13
|
+
packageVersion: "35.1.4",
|
|
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.1.
|
|
7
|
+
packageVersion: "35.1.4"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -49,6 +49,7 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
49
49
|
onClickCallback = _ref.onClick,
|
|
50
50
|
size = _ref.size,
|
|
51
51
|
spaceInline = _ref.spaceInline,
|
|
52
|
+
className = _ref.className,
|
|
52
53
|
_ref$testId = _ref.testId,
|
|
53
54
|
testId = _ref$testId === void 0 ? 'smart-block-action' : _ref$testId;
|
|
54
55
|
var context = useFlexibleUiContext();
|
|
@@ -101,8 +102,10 @@ var ActionBlockNew = function ActionBlockNew(_ref) {
|
|
|
101
102
|
}, [context === null || context === void 0 ? void 0 : context.actions, _onClick, onError, padding, size, spaceInline, isLoading, onLoadingChange]);
|
|
102
103
|
return actions ? /*#__PURE__*/React.createElement("div", {
|
|
103
104
|
ref: blockRef,
|
|
104
|
-
"data-testid": testId
|
|
105
|
-
|
|
105
|
+
"data-testid": testId
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
107
|
+
,
|
|
108
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb129b _18u01ivi _2hwxc10g" : "_1e0c1txw _2lx21bp4 _vchhusvi _16jlkb7n _1bsb1osq _18u01ivi _2hwxc10g", className])
|
|
106
109
|
}, actions, /*#__PURE__*/React.createElement(ActionFooter, {
|
|
107
110
|
message: message,
|
|
108
111
|
testId: testId
|
|
@@ -29,7 +29,7 @@ var ImagePreviewNew = function ImagePreviewNew(_ref) {
|
|
|
29
29
|
setDynamicStyles(_objectSpread({
|
|
30
30
|
borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
|
|
31
31
|
borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
|
|
32
|
-
marginBottom: '0.5rem'
|
|
32
|
+
marginBottom: fg('platform-linking-visual-refresh-v1') ? "var(--ds-space-100, 8px)" : '0.5rem'
|
|
33
33
|
}, previewHeight ? {
|
|
34
34
|
height: "".concat(previewHeight, "px")
|
|
35
35
|
} : {}));
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
._1e0c1nu9{display:inline}
|
|
7
7
|
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
8
8
|
._otyrcxkx{margin-bottom:var(--ds-space-100,.5rem)}
|
|
9
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
9
10
|
._qrwqpd34{border-top-right-radius:var(--ds-border-radius-200,8px)}
|
|
10
11
|
._y3gn1h6o{text-align:center}
|
|
@@ -15,9 +15,13 @@ import { messages } from '../../../../../messages';
|
|
|
15
15
|
import FlexibleCard from '../../../../FlexibleCard';
|
|
16
16
|
import { CustomBlock, PreviewBlock } from '../../../../FlexibleCard/components/blocks';
|
|
17
17
|
import HoverCardForbiddenViewOld from './HoverCardForbiddenViewOld';
|
|
18
|
+
var titleBlockStylesOld = null;
|
|
18
19
|
var titleBlockStyles = null;
|
|
20
|
+
var mainTextStylesOld = null;
|
|
19
21
|
var mainTextStyles = null;
|
|
22
|
+
var connectButtonStylesOld = null;
|
|
20
23
|
var connectButtonStyles = null;
|
|
24
|
+
var basePreviewStylesOld = null;
|
|
21
25
|
var basePreviewStyles = null;
|
|
22
26
|
var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
23
27
|
var _cardState$details, _cardState$details2, _extractProvider$text, _extractProvider, _extractRequestAccess;
|
|
@@ -51,11 +55,11 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
51
55
|
ignoreContainerPadding: true,
|
|
52
56
|
testId: testId,
|
|
53
57
|
status: SmartLinkStatus.Forbidden,
|
|
54
|
-
className: ax(["_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
58
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_13lipd34 _qrwqpd34 _otyru2gc" : "_13lipd34 _qrwqpd34 _otyrcxkx"])
|
|
55
59
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
56
60
|
testId: "".concat(testId, "-title"),
|
|
57
61
|
status: SmartLinkStatus.Forbidden,
|
|
58
|
-
className: ax(["_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
62
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bah1h6o _k48p1pd9 _19pku2gc" : "_1bah1h6o _k48p1pd9 _19pku2gc"])
|
|
59
63
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[titleMessageKey], {
|
|
60
64
|
values: {
|
|
61
65
|
product: product
|
|
@@ -63,7 +67,7 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
63
67
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
64
68
|
testId: "".concat(testId, "-content"),
|
|
65
69
|
status: SmartLinkStatus.Forbidden,
|
|
66
|
-
className: ax(["_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
70
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o" : "_11c8qk37 _1e0c1nu9 _1bah1h6o _19pkze3t _y3gn1h6o"])
|
|
67
71
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages[descriptiveMessageKey], {
|
|
68
72
|
values: {
|
|
69
73
|
product: product,
|
|
@@ -71,7 +75,7 @@ var HoverCardForbiddenViewNew = function HoverCardForbiddenViewNew(_ref) {
|
|
|
71
75
|
}
|
|
72
76
|
}))), action && /*#__PURE__*/React.createElement(CustomBlock, {
|
|
73
77
|
status: SmartLinkStatus.Forbidden,
|
|
74
|
-
className: ax(["_1bah1h6o _19pku2gc"])
|
|
78
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bah1h6o _19pku2gc" : "_1bah1h6o _19pku2gc"])
|
|
75
79
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
76
80
|
testId: "".concat(testId, "-button"),
|
|
77
81
|
onClick: action === null || action === void 0 ? void 0 : action.promise,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
._2aco1vlj [data-smart-element-group]{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._quenui7n [data-smart-element-group]{gap:.06rem}
|
|
4
|
+
._quenze3t [data-smart-element-group]{gap:var(--ds-space-0,0)}
|
|
4
5
|
._zulpidpf{gap:0}
|
|
5
6
|
._zulpu2gc{gap:var(--ds-space-100,8px)}._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
6
7
|
._1ljqu2gc [data-separator]+[data-separator]:before{margin-right:var(--ds-space-100,8px)}
|
|
7
8
|
._3tmpcxkx [data-smart-element-group]:nth-of-type(2)>span{margin-left:var(--ds-space-100,.5rem)}
|
|
8
9
|
._3um015vq{visibility:hidden}
|
|
10
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
9
11
|
._fmt31ohn [data-smart-element-group]:first-of-type{flex-grow:7}
|
|
10
12
|
._ia0l11wp [data-smart-element-group]:nth-of-type(2){flex-grow:3}
|
|
11
13
|
._kqswstnw{position:absolute}
|
|
14
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
12
15
|
._oebj1txw [data-smart-element-group]{display:flex}
|
|
13
16
|
._w3mucxkx [data-smart-element-group]:first-of-type>span{margin-right:var(--ds-space-100,.5rem)}
|
|
14
17
|
._x7z0u2gc [data-smart-element-group]>[data-smart-element-group]>span{margin-right:var(--ds-space-100,8px)}
|
|
@@ -13,12 +13,15 @@ import { getMetadata } from '../../../utils';
|
|
|
13
13
|
import ImagePreview from '../../ImagePreview';
|
|
14
14
|
import HoverCardResolvedViewOld from './HoverCardResolvedViewOld';
|
|
15
15
|
var hiddenSnippetStyles = null;
|
|
16
|
-
var
|
|
16
|
+
var metadataBlockCssOld = null;
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Moved from HoverCardContent.tsx due to CompiledCSS migration.
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
21
|
+
var titleBlockStyleOld = null;
|
|
22
|
+
var titleBlockStyles = null;
|
|
23
|
+
var snippetBlockCss = null;
|
|
24
|
+
var actionBlockCss = null;
|
|
22
25
|
var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
23
26
|
var _cardState$details;
|
|
24
27
|
var cardState = _ref.cardState,
|
|
@@ -63,20 +66,21 @@ var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
|
63
66
|
fallbackElementHeight: snippetHeight.current
|
|
64
67
|
});
|
|
65
68
|
var snippet = imagePreview ? null : /*#__PURE__*/React.createElement(SnippetBlock, {
|
|
66
|
-
status: SmartLinkStatus.Resolved
|
|
69
|
+
status: SmartLinkStatus.Resolved,
|
|
70
|
+
className: ax([fg('platform-linking-visual-refresh-v1') && "_ca0q1b66"])
|
|
67
71
|
});
|
|
68
72
|
var aiSummaryMinHeight = snippet ? snippetHeight.current : 0;
|
|
69
73
|
return /*#__PURE__*/React.createElement(FlexibleCard, flexibleCardProps, imagePreview, /*#__PURE__*/React.createElement(TitleBlock, _extends({}, titleBlockProps, {
|
|
70
74
|
metadataPosition: SmartLinkPosition.Top,
|
|
71
75
|
status: SmartLinkStatus.Resolved,
|
|
72
|
-
className: ax(["_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
76
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _quenze3t _oebj1txw _13mh1pd9" : "_zulpu2gc _quenui7n _oebj1txw _x7z0u2gc _1ljqu2gc _13mh1pd9"])
|
|
73
77
|
})), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
74
78
|
primary: primary,
|
|
75
79
|
secondary: secondary,
|
|
76
80
|
maxLines: 1,
|
|
77
81
|
size: SmartLinkSize.Medium,
|
|
78
82
|
status: SmartLinkStatus.Resolved,
|
|
79
|
-
className: ax(["_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
83
|
+
className: ax([!fg('platform-linking-visual-refresh-v1') && "_zulpidpf _2aco1vlj _fmt31ohn _yklxcxkx _w3mucxkx _ia0l11wp _3tmpcxkx"])
|
|
80
84
|
}), isAISummaryEnabled ? /*#__PURE__*/React.createElement(AISummaryBlock, {
|
|
81
85
|
aiSummaryMinHeight: aiSummaryMinHeight,
|
|
82
86
|
placeholder: snippet,
|
|
@@ -89,7 +93,8 @@ var HoverCardResolvedViewNew = function HoverCardResolvedViewNew(_ref) {
|
|
|
89
93
|
className: ax(["_3um015vq _kqswstnw"])
|
|
90
94
|
}), /*#__PURE__*/React.createElement(ActionBlock, {
|
|
91
95
|
onClick: onActionClick,
|
|
92
|
-
spaceInline: "space.100"
|
|
96
|
+
spaceInline: "space.100",
|
|
97
|
+
className: ax([fg('platform-linking-visual-refresh-v1') && "_n3td1b66"])
|
|
93
98
|
}), /*#__PURE__*/React.createElement(AIFooterBlock, null));
|
|
94
99
|
};
|
|
95
100
|
var HoverCardResolvedView = function HoverCardResolvedView(props) {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
._11c8qk37{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,system-ui,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._zulp5l1i{gap:.5rem .5rem}
|
|
3
|
+
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
4
|
+
._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
3
5
|
._19pkcxkx{margin-top:var(--ds-space-100,.5rem)}
|
|
6
|
+
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
4
7
|
._1bahesu3{justify-content:flex-end}
|
|
5
8
|
._bpsp1wq8 a{font-weight:var(--ds-font-weight-medium,500)}
|
|
@@ -18,8 +18,11 @@ import { CustomBlock } from '../../../../FlexibleCard/components/blocks';
|
|
|
18
18
|
import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
|
|
19
19
|
import { LinkIcon } from '../../../../FlexibleCard/components/elements';
|
|
20
20
|
import HoverCardUnauthorisedViewOld from './HoverCardUnauthorisedViewOld';
|
|
21
|
+
var connectButtonStylesOld = null;
|
|
21
22
|
var connectButtonStyles = null;
|
|
23
|
+
var titleBlockStylesOld = null;
|
|
22
24
|
var titleBlockStyles = null;
|
|
25
|
+
var mainTextStylesOld = null;
|
|
23
26
|
var mainTextStyles = null;
|
|
24
27
|
var HoverCardUnauthorisedViewNew = function HoverCardUnauthorisedViewNew(_ref) {
|
|
25
28
|
var _cardState$details, _extractProvider;
|
|
@@ -58,20 +61,20 @@ var HoverCardUnauthorisedViewNew = function HoverCardUnauthorisedViewNew(_ref) {
|
|
|
58
61
|
testId: testId
|
|
59
62
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
60
63
|
testId: "".concat(testId, "-title"),
|
|
61
|
-
className: ax(["_zulp5l1i _bpsp1wq8"])
|
|
64
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_zulpu2gc _13mh1pd9" : "_zulp5l1i _bpsp1wq8"])
|
|
62
65
|
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
63
66
|
values: {
|
|
64
67
|
context: providerName
|
|
65
68
|
}
|
|
66
69
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
67
70
|
testId: "".concat(testId, "-content"),
|
|
68
|
-
className: ax(["_11c8qk37 _19pkcxkx"])
|
|
71
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_11c8qk37 _19pku2gc" : "_11c8qk37 _19pkcxkx"])
|
|
69
72
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
70
73
|
providerName: providerName,
|
|
71
74
|
isProductIntegrationSupported: isProductIntegrationSupported
|
|
72
75
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
73
76
|
testId: "".concat(testId, "-button"),
|
|
74
|
-
className: ax(["_1bahesu3 _19pkcxkx"])
|
|
77
|
+
className: ax([fg('platform-linking-visual-refresh-v1') ? "_1bahesu3 _19pku2gc" : "_1bahesu3 _19pkcxkx"])
|
|
75
78
|
}, /*#__PURE__*/React.createElement(ActionGroup, {
|
|
76
79
|
items: actions,
|
|
77
80
|
appearance: "primary"
|
|
@@ -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.1.
|
|
16
|
+
packageVersion: "35.1.4",
|
|
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.1.
|
|
3
|
+
"version": "35.1.4",
|
|
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": "^24.1.0",
|
|
43
43
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
44
|
-
"@atlaskit/icon-lab": "^3.
|
|
44
|
+
"@atlaskit/icon-lab": "^3.3.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",
|