@atlaskit/smart-card 34.6.5 → 34.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +5 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.compiled.css +5 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/resolving/index.compiled.css +5 -2
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.js +10 -3
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +31 -7
- package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +3 -2
- package/dist/cjs/view/InlineCard/Frame/styled.js +7 -4
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +1 -0
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +162 -32
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +24 -17
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +3 -1
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +10 -5
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +5 -4
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +16 -4
- package/dist/cjs/view/InlineCard/common/action-button/index.js +61 -0
- package/dist/cjs/view/InlineCard/styled.js +4 -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/container/index.compiled.css +5 -2
- package/dist/es2019/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.compiled.css +5 -2
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +4 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.compiled.css +5 -2
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +1 -1
- package/dist/es2019/view/InlineCard/ErroredView/index.js +12 -5
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +34 -10
- package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +3 -2
- package/dist/es2019/view/InlineCard/Frame/styled.js +7 -4
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +1 -0
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +162 -32
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +23 -16
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +4 -2
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +13 -8
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +5 -4
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +18 -6
- package/dist/es2019/view/InlineCard/common/action-button/index.js +50 -0
- package/dist/es2019/view/InlineCard/styled.js +3 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +5 -2
- package/dist/esm/view/FlexibleCard/components/container/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.compiled.css +5 -2
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.compiled.css +4 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.compiled.css +5 -2
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.js +12 -5
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +34 -10
- package/dist/esm/view/InlineCard/Frame/styled.compiled.css +3 -2
- package/dist/esm/view/InlineCard/Frame/styled.js +7 -4
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +1 -0
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +162 -32
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +23 -16
- package/dist/esm/view/InlineCard/ResolvedView/index.js +4 -2
- package/dist/esm/view/InlineCard/ResolvingView/index.js +13 -8
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +5 -4
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +18 -6
- package/dist/esm/view/InlineCard/common/action-button/index.js +51 -0
- package/dist/esm/view/InlineCard/styled.js +3 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/InlineCard/IconAndTitleLayout/index.d.ts +10 -2
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -8
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +1 -1
- package/dist/types/view/InlineCard/common/action-button/index.d.ts +19 -0
- package/dist/types/view/InlineCard/styled.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/index.d.ts +10 -2
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +8 -8
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +19 -0
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +1 -1
- package/package.json +5 -2
|
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.TitleWrapperOldVisualRefresh = exports.TitleWrapperClassNameOldVisualRefresh = exports.RightIconPositionWrapper = exports.LozengeWrapperOldVisualRefresh = exports.IconWrapperOldVisualRefresh = exports.IconTitleWrapperOldVisualRefresh = exports.IconPositionWrapperOldVisualRefresh = exports.IconEmptyWrapperOldVisualRefresh = exports.EmojiWrapperOldVisualRefresh = void 0;
|
|
10
10
|
require("./styled.compiled.css");
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
@@ -37,8 +37,9 @@ var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 16px;\n
|
|
|
37
37
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
38
38
|
var IconOverrides = "\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";
|
|
39
39
|
|
|
40
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
40
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
41
|
-
var
|
|
42
|
+
var IconWrapperOldVisualRefresh = exports.IconWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
42
43
|
var _ref$as = _ref.as,
|
|
43
44
|
C = _ref$as === void 0 ? "span" : _ref$as,
|
|
44
45
|
__cmpls = _ref.style,
|
|
@@ -51,11 +52,12 @@ var IconWrapper = exports.IconWrapper = (0, _react.forwardRef)(function (_ref, _
|
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
// Wraps all emoji in Inline Links similar to icon
|
|
55
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
54
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
57
|
if (process.env.NODE_ENV !== 'production') {
|
|
56
|
-
|
|
58
|
+
IconWrapperOldVisualRefresh.displayName = 'IconWrapperOldVisualRefresh';
|
|
57
59
|
}
|
|
58
|
-
var
|
|
60
|
+
var EmojiWrapperOldVisualRefresh = exports.EmojiWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref2, __cmplr) {
|
|
59
61
|
var _ref2$as = _ref2.as,
|
|
60
62
|
C = _ref2$as === void 0 ? "span" : _ref2$as,
|
|
61
63
|
__cmpls = _ref2.style,
|
|
@@ -70,11 +72,12 @@ var EmojiWrapper = exports.EmojiWrapper = (0, _react.forwardRef)(function (_ref2
|
|
|
70
72
|
// The main 'wrapping' element, title of the content.
|
|
71
73
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
72
74
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
75
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
73
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
74
77
|
if (process.env.NODE_ENV !== 'production') {
|
|
75
|
-
|
|
78
|
+
EmojiWrapperOldVisualRefresh.displayName = 'EmojiWrapperOldVisualRefresh';
|
|
76
79
|
}
|
|
77
|
-
var
|
|
80
|
+
var IconTitleWrapperOldVisualRefresh = exports.IconTitleWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref3, __cmplr) {
|
|
78
81
|
var _ref3$as = _ref3.as,
|
|
79
82
|
C = _ref3$as === void 0 ? "span" : _ref3$as,
|
|
80
83
|
__cmpls = _ref3.style,
|
|
@@ -86,12 +89,12 @@ var IconTitleWrapper = exports.IconTitleWrapper = (0, _react.forwardRef)(functio
|
|
|
86
89
|
}));
|
|
87
90
|
});
|
|
88
91
|
|
|
89
|
-
// TODO
|
|
92
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
90
93
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
91
94
|
if (process.env.NODE_ENV !== 'production') {
|
|
92
|
-
|
|
95
|
+
IconTitleWrapperOldVisualRefresh.displayName = 'IconTitleWrapperOldVisualRefresh';
|
|
93
96
|
}
|
|
94
|
-
var
|
|
97
|
+
var LozengeWrapperOldVisualRefresh = exports.LozengeWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref4, __cmplr) {
|
|
95
98
|
var _ref4$as = _ref4.as,
|
|
96
99
|
C = _ref4$as === void 0 ? "span" : _ref4$as,
|
|
97
100
|
__cmpls = _ref4.style,
|
|
@@ -105,7 +108,7 @@ var LozengeWrapper = exports.LozengeWrapper = (0, _react.forwardRef)(function (_
|
|
|
105
108
|
|
|
106
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
107
110
|
if (process.env.NODE_ENV !== 'production') {
|
|
108
|
-
|
|
111
|
+
LozengeWrapperOldVisualRefresh.displayName = 'LozengeWrapperOldVisualRefresh';
|
|
109
112
|
}
|
|
110
113
|
var RightIconPositionWrapper = exports.RightIconPositionWrapper = (0, _react.forwardRef)(function (_ref5, __cmplr) {
|
|
111
114
|
var _ref5$as = _ref5.as,
|
|
@@ -122,11 +125,12 @@ var RightIconPositionWrapper = exports.RightIconPositionWrapper = (0, _react.for
|
|
|
122
125
|
// The following components are used to absolutely position icons in the vertical center.
|
|
123
126
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
124
127
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
128
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
125
129
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
126
130
|
if (process.env.NODE_ENV !== 'production') {
|
|
127
131
|
RightIconPositionWrapper.displayName = 'RightIconPositionWrapper';
|
|
128
132
|
}
|
|
129
|
-
var
|
|
133
|
+
var IconPositionWrapperOldVisualRefresh = exports.IconPositionWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref6, __cmplr) {
|
|
130
134
|
var _ref6$as = _ref6.as,
|
|
131
135
|
C = _ref6$as === void 0 ? "span" : _ref6$as,
|
|
132
136
|
__cmpls = _ref6.style,
|
|
@@ -138,11 +142,12 @@ var IconPositionWrapper = exports.IconPositionWrapper = (0, _react.forwardRef)(f
|
|
|
138
142
|
}));
|
|
139
143
|
});
|
|
140
144
|
|
|
145
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
141
146
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
142
147
|
if (process.env.NODE_ENV !== 'production') {
|
|
143
|
-
|
|
148
|
+
IconPositionWrapperOldVisualRefresh.displayName = 'IconPositionWrapperOldVisualRefresh';
|
|
144
149
|
}
|
|
145
|
-
var
|
|
150
|
+
var IconEmptyWrapperOldVisualRefresh = exports.IconEmptyWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref7, __cmplr) {
|
|
146
151
|
var _ref7$as = _ref7.as,
|
|
147
152
|
C = _ref7$as === void 0 ? "span" : _ref7$as,
|
|
148
153
|
__cmpls = _ref7.style,
|
|
@@ -155,14 +160,16 @@ var IconEmptyWrapper = exports.IconEmptyWrapper = (0, _react.forwardRef)(functio
|
|
|
155
160
|
});
|
|
156
161
|
|
|
157
162
|
// With emotion it's not possible to use reference to `TitleWrapper` as part of a selector,
|
|
163
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
158
164
|
// To achieve same result we use classname instead.
|
|
159
165
|
if (process.env.NODE_ENV !== 'production') {
|
|
160
|
-
|
|
166
|
+
IconEmptyWrapperOldVisualRefresh.displayName = 'IconEmptyWrapperOldVisualRefresh';
|
|
161
167
|
}
|
|
162
|
-
var
|
|
168
|
+
var TitleWrapperClassNameOldVisualRefresh = exports.TitleWrapperClassNameOldVisualRefresh = 'smart-link-title-wrapper';
|
|
163
169
|
|
|
170
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
164
171
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
|
|
165
|
-
var
|
|
172
|
+
var TitleWrapperOldVisualRefresh = exports.TitleWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref8, __cmplr) {
|
|
166
173
|
var _ref8$as = _ref8.as,
|
|
167
174
|
C = _ref8$as === void 0 ? "span" : _ref8$as,
|
|
168
175
|
__cmpls = _ref8.style,
|
|
@@ -174,5 +181,5 @@ var TitleWrapper = exports.TitleWrapper = (0, _react.forwardRef)(function (_ref8
|
|
|
174
181
|
}));
|
|
175
182
|
});
|
|
176
183
|
if (process.env.NODE_ENV !== 'production') {
|
|
177
|
-
|
|
184
|
+
TitleWrapperOldVisualRefresh.displayName = 'TitleWrapperOldVisualRefresh';
|
|
178
185
|
}
|
|
@@ -12,6 +12,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _HoverCard = require("../../HoverCard");
|
|
16
17
|
var _Frame = require("../Frame");
|
|
17
18
|
var _IconAndTitleLayout = require("../IconAndTitleLayout");
|
|
@@ -32,7 +33,8 @@ var InlineCardResolvedView = exports.InlineCardResolvedView = /*#__PURE__*/funct
|
|
|
32
33
|
return null;
|
|
33
34
|
}
|
|
34
35
|
var appearance = lozenge.appearance || 'default';
|
|
35
|
-
|
|
36
|
+
var LozengeWrapper = (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? _IconAndTitleLayout.LozengeWrapper : _styled.LozengeWrapperOldVisualRefresh;
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(LozengeWrapper, null, /*#__PURE__*/_react.default.createElement(_lozenge.default, {
|
|
36
38
|
testId: "inline-card-resolved-view-lozenge",
|
|
37
39
|
appearance: appearance
|
|
38
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -40,7 +40,8 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
|
|
|
40
40
|
titleTextColor = _this$props.titleTextColor,
|
|
41
41
|
resolvingPlaceholder = _this$props.resolvingPlaceholder,
|
|
42
42
|
truncateInline = _this$props.truncateInline;
|
|
43
|
-
var SpinnerWrapperComponent = (0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard') ? _styled2.
|
|
43
|
+
var SpinnerWrapperComponent = (0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard') ? _styled2.SpinnerWrapperOldVisualRefresh : _styledEmotion2.SpinnerWrapper;
|
|
44
|
+
var IconTitleWrapperFFed = (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? _IconAndTitleLayout.IconTitleWrapper : _styled.IconTitleWrapperOldVisualRefresh;
|
|
44
45
|
if (inlinePreloaderStyle === 'on-right-without-skeleton') {
|
|
45
46
|
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
46
47
|
return /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
@@ -49,11 +50,13 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
|
|
|
49
50
|
onClick: onClick,
|
|
50
51
|
isSelected: isSelected,
|
|
51
52
|
truncateInline: truncateInline
|
|
52
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(IconTitleWrapperFFed, null, url, /*#__PURE__*/_react.default.createElement(_styled.RightIconPositionWrapper, null, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
54
|
+
size: 14
|
|
55
|
+
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(SpinnerWrapperComponent, {
|
|
53
56
|
className: "inline-resolving-spinner"
|
|
54
57
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
55
58
|
size: 14
|
|
56
|
-
})))));
|
|
59
|
+
}))))));
|
|
57
60
|
} else {
|
|
58
61
|
return /*#__PURE__*/_react.default.createElement(_Frame.Frame, {
|
|
59
62
|
withoutBackground: true,
|
|
@@ -77,11 +80,13 @@ var InlineCardResolvingView = exports.InlineCardResolvingView = /*#__PURE__*/fun
|
|
|
77
80
|
}, /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.IconAndTitleLayout, {
|
|
78
81
|
title: resolvingPlaceholder !== null && resolvingPlaceholder !== void 0 ? resolvingPlaceholder : url,
|
|
79
82
|
titleTextColor: titleTextColor
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
83
|
+
}, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
84
|
+
size: 14
|
|
85
|
+
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(SpinnerWrapperComponent, {
|
|
81
86
|
className: "inline-resolving-spinner"
|
|
82
87
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
83
88
|
size: 14
|
|
84
|
-
}))));
|
|
89
|
+
})))));
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
}]);
|
|
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.SpinnerWrapperOldVisualRefresh = void 0;
|
|
10
10
|
require("./styled.compiled.css");
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
@@ -17,10 +17,11 @@ var _styled = require("../IconAndTitleLayout/styled");
|
|
|
17
17
|
var _excluded = ["as", "style"];
|
|
18
18
|
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); }
|
|
19
19
|
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; }
|
|
20
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
20
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
|
-
var
|
|
22
|
+
var SpinnerWrapperOldVisualRefresh = exports.SpinnerWrapperOldVisualRefresh = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
22
23
|
var _ref$as = _ref.as,
|
|
23
|
-
C = _ref$as === void 0 ? _styled.
|
|
24
|
+
C = _ref$as === void 0 ? _styled.IconTitleWrapperOldVisualRefresh : _ref$as,
|
|
24
25
|
__cmpls = _ref.style,
|
|
25
26
|
__cmplp = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
26
27
|
return /*#__PURE__*/React.createElement(C, (0, _extends2.default)({}, __cmplp, {
|
|
@@ -30,5 +31,5 @@ var SpinnerWrapper = exports.SpinnerWrapper = (0, _react.forwardRef)(function (_
|
|
|
30
31
|
}));
|
|
31
32
|
});
|
|
32
33
|
if (process.env.NODE_ENV !== 'production') {
|
|
33
|
-
|
|
34
|
+
SpinnerWrapperOldVisualRefresh.displayName = 'SpinnerWrapperOldVisualRefresh';
|
|
34
35
|
}
|
|
@@ -17,6 +17,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
17
17
|
var _useAnalyticsEvents2 = require("../../../common/analytics/generated/use-analytics-events");
|
|
18
18
|
var _messages = require("../../../messages");
|
|
19
19
|
var _HoverCard = require("../../HoverCard");
|
|
20
|
+
var _actionButton = require("../common/action-button");
|
|
20
21
|
var _Frame = require("../Frame");
|
|
21
22
|
var _Icon = require("../Icon");
|
|
22
23
|
var _IconEmotion = require("../Icon-emotion");
|
|
@@ -83,11 +84,22 @@ var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function I
|
|
|
83
84
|
}
|
|
84
85
|
}, [fireEvent, onAuthorise]);
|
|
85
86
|
var renderActionButton = _react.default.useCallback(function () {
|
|
86
|
-
var
|
|
87
|
+
var Button = (0, _withFrameStyleControl.default)(_button.default, frameRef);
|
|
87
88
|
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
88
|
-
|
|
89
|
+
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement(Button, {
|
|
91
|
+
component: _actionButton.ActionButton,
|
|
92
|
+
onClick: handleConnectAccount,
|
|
93
|
+
testId: "button-connect-account"
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_link_account_card_name, {
|
|
95
|
+
values: {
|
|
96
|
+
context: context
|
|
97
|
+
}
|
|
98
|
+
})));
|
|
99
|
+
}
|
|
100
|
+
return onAuthorise ? /*#__PURE__*/_react.default.createElement(Button, {
|
|
89
101
|
spacing: "none",
|
|
90
|
-
component: _styled.
|
|
102
|
+
component: _styled.IconStyledButtonOldVisualRefresh,
|
|
91
103
|
onClick: handleConnectAccount,
|
|
92
104
|
testId: "button-connect-account"
|
|
93
105
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_link_account_card_name, {
|
|
@@ -96,7 +108,7 @@ var InlineCardUnauthorizedView = exports.InlineCardUnauthorizedView = function I
|
|
|
96
108
|
}
|
|
97
109
|
}))) : undefined;
|
|
98
110
|
} else {
|
|
99
|
-
return onAuthorise ? /*#__PURE__*/_react.default.createElement(
|
|
111
|
+
return onAuthorise ? /*#__PURE__*/_react.default.createElement(Button, {
|
|
100
112
|
spacing: "none",
|
|
101
113
|
component: _styledEmotion.IconStyledButton,
|
|
102
114
|
onClick: handleConnectAccount,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ActionButton = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _primitives = require("@atlaskit/primitives");
|
|
13
|
+
var _excluded = ["children"];
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
/**
|
|
17
|
+
* Action button has to be a span for the overflow to work correctly
|
|
18
|
+
*/
|
|
19
|
+
var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
20
|
+
var children = _ref.children,
|
|
21
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Box, (0, _extends2.default)({
|
|
23
|
+
as: "span",
|
|
24
|
+
ref: ref,
|
|
25
|
+
xcss: [actionButtonStyle, !props.disabled && actionButtonNotDisabledStyle]
|
|
26
|
+
}, props, {
|
|
27
|
+
"aria-disabled": props.disabled,
|
|
28
|
+
role: "button"
|
|
29
|
+
}), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
30
|
+
as: "span",
|
|
31
|
+
xcss: internalButtonStyle
|
|
32
|
+
}, children));
|
|
33
|
+
});
|
|
34
|
+
var actionButtonStyle = (0, _primitives.xcss)({
|
|
35
|
+
textAlign: 'initial',
|
|
36
|
+
display: 'inline',
|
|
37
|
+
borderRadius: 'border.radius.100',
|
|
38
|
+
borderTopLeftRadius: '0px',
|
|
39
|
+
borderBottomLeftRadius: '0px',
|
|
40
|
+
backgroundClip: 'padding-box',
|
|
41
|
+
boxDecorationBreak: 'clone',
|
|
42
|
+
font: 'font.body.large',
|
|
43
|
+
paddingTop: 'space.025',
|
|
44
|
+
paddingLeft: 'space.075',
|
|
45
|
+
paddingBottom: 'space.025',
|
|
46
|
+
paddingRight: 'space.075',
|
|
47
|
+
whiteSpace: 'nowrap',
|
|
48
|
+
backgroundColor: 'color.background.neutral',
|
|
49
|
+
cursor: 'not-allowed',
|
|
50
|
+
color: 'color.text.disabled'
|
|
51
|
+
});
|
|
52
|
+
var internalButtonStyle = (0, _primitives.xcss)({
|
|
53
|
+
font: 'font.body'
|
|
54
|
+
});
|
|
55
|
+
var actionButtonNotDisabledStyle = (0, _primitives.xcss)({
|
|
56
|
+
color: 'color.text',
|
|
57
|
+
cursor: 'pointer',
|
|
58
|
+
':hover': {
|
|
59
|
+
backgroundColor: 'color.background.neutral.hovered'
|
|
60
|
+
}
|
|
61
|
+
});
|
|
@@ -6,7 +6,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.
|
|
9
|
+
exports.IconStyledButtonOldVisualRefresh = void 0;
|
|
10
10
|
require("./styled.compiled.css");
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
@@ -18,8 +18,9 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
18
18
|
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; }
|
|
19
19
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
20
20
|
// This basically turns the button back into inline content
|
|
21
|
+
// TODO Delete when cleaning platform-linking-visual-refresh-v1
|
|
21
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
|
-
var
|
|
23
|
+
var IconStyledButtonOldVisualRefresh = exports.IconStyledButtonOldVisualRefresh = (0, _react.forwardRef)(function (_ref, __cmplr) {
|
|
23
24
|
var _ref$as = _ref.as,
|
|
24
25
|
C = _ref$as === void 0 ? "span" : _ref$as,
|
|
25
26
|
__cmpls = _ref.style,
|
|
@@ -31,5 +32,5 @@ var IconStyledButton = exports.IconStyledButton = (0, _react.forwardRef)(functio
|
|
|
31
32
|
}));
|
|
32
33
|
});
|
|
33
34
|
if (process.env.NODE_ENV !== 'production') {
|
|
34
|
-
|
|
35
|
+
IconStyledButtonOldVisualRefresh.displayName = 'IconStyledButtonOldVisualRefresh';
|
|
35
36
|
}
|
|
@@ -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: "34.6.
|
|
23
|
+
packageVersion: "34.6.6",
|
|
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: "34.6.
|
|
5
|
+
packageVersion: "34.6.6"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
._19ith6cr{border:1px solid var(--ds-border,#dfe1e6)}
|
|
3
3
|
._1yt418y6{padding:var(--_1xumd0e)}
|
|
4
4
|
._2rkopd34{border-radius:var(--ds-border-radius-200,8px)}
|
|
5
5
|
._zulp1jvo{gap:1.25rem 0}
|
|
6
6
|
._zulp1qos{gap:.5rem 0}
|
|
7
7
|
._zulpfzsm{gap:.25rem 0}
|
|
8
|
-
._zulph3jc{gap:1rem 0}
|
|
8
|
+
._zulph3jc{gap:1rem 0}._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
9
9
|
._19bv15sf{padding-left:calc(var(--preview-block-width) + 1.25rem)}
|
|
10
10
|
._19bv1ltm{padding-left:calc(var(--preview-block-width) + .25rem)}
|
|
11
11
|
._19bvf557{padding-left:calc(var(--preview-block-width) + 1rem)}
|
|
12
12
|
._19bvqox2{padding-left:calc(var(--preview-block-width) + .5rem)}
|
|
13
|
+
._19pkv77o{margin-top:var(--ds-space-025,2px)}
|
|
13
14
|
._1e0c1txw{display:flex}
|
|
14
15
|
._1pcmkb7n:hover~.actions-button-group{opacity:1}
|
|
15
16
|
._1reo15vq{overflow-x:hidden}
|
|
@@ -20,11 +21,13 @@
|
|
|
20
21
|
._1yob1kwk{--container-gap-right:.5rem}
|
|
21
22
|
._1yob1wow{--container-gap-right:var(--_12k13bg)}
|
|
22
23
|
._1yob6mu8{--container-gap-right:.25rem}
|
|
24
|
+
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
23
25
|
._2lx21bp4{flex-direction:column}
|
|
24
26
|
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
25
27
|
._jb7v18y6{--container-padding:var(--_1xumd0e)}
|
|
26
28
|
._kqswh2mm{position:relative}
|
|
27
29
|
._nqwih2mm .has-action, ._18ywh2mm a, ._1nq3h2mm button{position:relative}
|
|
30
|
+
._otyrv77o{margin-bottom:var(--ds-space-025,2px)}
|
|
28
31
|
._r37x1r5k{--preview-block-width:30%}
|
|
29
32
|
._u5f315sf{padding-right:calc(var(--preview-block-width) + 1.25rem)}
|
|
30
33
|
._u5f31ltm{padding-right:calc(var(--preview-block-width) + .25rem)}
|
|
@@ -179,7 +179,7 @@ const ContainerNew = ({
|
|
|
179
179
|
const container = /*#__PURE__*/React.createElement("div", {
|
|
180
180
|
"data-smart-link-container": true,
|
|
181
181
|
"data-testid": testId,
|
|
182
|
-
className: ax(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19ith6cr _2rkopd34
|
|
182
|
+
className: ax(["_1e0c1txw _2lx21bp4 _1ul9idpf _1reo15vq _kqswh2mm _1pcmkb7n _1v7y1i6y _ufn21i6y", gapStyleMap[size], !hideBackground && "_bfhkhp5a", "_1yt418y6 _jb7v18y6 _y5vk167t _1yob1wow _r37x1r5k", previewOnLeft && previewOnLeftStyleMap[size], previewOnRight && previewOnRightStyleMap[size], !hideElevation && "_19ith6cr _2rkopd34 _19pkv77o _2hwxv77o _otyrv77o _18u0v77o", clickableContainer && "_nqwih2mm _18ywh2mm _1nq3h2mm _1t4ckb7n _1nxdkb7n _xnbykb7n"]),
|
|
183
183
|
style: {
|
|
184
184
|
"--_1xumd0e": ix(padding),
|
|
185
185
|
"--_73mooq": ix(previewOnLeft ? gap : padding),
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
1
|
+
._11lvutpp button{padding-left:var(--ds-space-150,9pt)}
|
|
2
|
+
._14hp1wdt button{width:220px}
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
|
+
._1gfl12x7 button{padding-top:var(--ds-space-075,6px)}
|
|
5
|
+
._1gqn12x7 button{padding-bottom:var(--ds-space-075,6px)}
|
|
4
6
|
._c71l1mjv{max-height:300px}
|
|
5
7
|
._d4lf1f4h button{min-height:28px}
|
|
8
|
+
._yhjmutpp button{padding-right:var(--ds-space-150,9pt)}
|
|
6
9
|
._1ll7166n button:focus, ._qprf166n button:focus-visible{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
|
|
7
10
|
._1pv01r31 button:focus, ._1m1b1r31 button:focus-visible{outline-color:currentColor}
|
|
8
11
|
._n6y8usvi button:focus, ._109gusvi button:focus-visible{box-sizing:border-box}
|
|
@@ -14,7 +14,7 @@ const LozengeActionItemsGroupNew = ({
|
|
|
14
14
|
onClick
|
|
15
15
|
}) => /*#__PURE__*/React.createElement("span", {
|
|
16
16
|
"data-testid": `${testId}-item-group`,
|
|
17
|
-
className: ax(["_c71l1mjv _18m91wug
|
|
17
|
+
className: ax(["_c71l1mjv _18m91wug _1pv01r31 _1m1b1r31 _qh55glyw _lt2aglyw _ph3k1o36 _1twe1o36 _1ll7166n _qprf166n _n6y8usvi _109gusvi _z29hu4to _wlxpu4to _1gfl12x7 _yhjmutpp _1gqn12x7 _11lvutpp _d4lf1f4h _14hp1wdt _6pup1kw7"])
|
|
18
18
|
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, items.map((item, idx) => /*#__PURE__*/React.createElement(LozengeActionItem, _extends({}, item, {
|
|
19
19
|
key: idx,
|
|
20
20
|
onClick: onClick,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
._kkk2n7od{all:unset}
|
|
3
|
-
._18s8v77o{margin:var(--ds-space-025,2px)}
|
|
4
3
|
._15vhn7od{font-variant:unset}
|
|
5
4
|
._189eyh40{border-width:2px}
|
|
6
5
|
._1dqonqa1{border-style:solid}
|
|
7
6
|
._1h6d1j28{border-color:transparent}
|
|
7
|
+
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
8
8
|
._19bvidpf{padding-left:0}
|
|
9
|
+
._19pkv77o{margin-top:var(--ds-space-025,2px)}
|
|
9
10
|
._1e0c1txw{display:flex}
|
|
10
11
|
._1p1dn7od{text-transform:unset}
|
|
11
12
|
._1wybn7od{font-size:unset}
|
|
13
|
+
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
12
14
|
._4cvr1h6o{align-items:center}
|
|
13
15
|
._80omtlke{cursor:pointer}
|
|
14
16
|
._bfhk18uv{background-color:initial}
|
|
@@ -16,6 +18,7 @@
|
|
|
16
18
|
._ect4n7od{font-family:unset}
|
|
17
19
|
._k48pn7od{font-weight:unset}
|
|
18
20
|
._n3tdidpf{padding-bottom:0}
|
|
21
|
+
._otyrv77o{margin-bottom:var(--ds-space-025,2px)}
|
|
19
22
|
._syazn7od{color:unset}
|
|
20
23
|
._u5f3idpf{padding-right:0}
|
|
21
24
|
._vwz4idpf{line-height:0}
|
|
@@ -50,7 +50,7 @@ const LozengeActionTriggerNew = ({
|
|
|
50
50
|
onMouseEnter: onMouseEnter,
|
|
51
51
|
onMouseLeave: onMouseLeave,
|
|
52
52
|
ref: triggerRef,
|
|
53
|
-
className: ax(["_kkk2n7od _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf
|
|
53
|
+
className: ax(["_kkk2n7od _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _15vhn7od _1dqonqa1 _189eyh40 _1h6d1j28 _bfhk18uv _syazn7od _80omtlke _ect4n7od _1wybn7od _zg8ln7od _k48pn7od _vwz4idpf _1p1dn7od _19pkv77o _2hwxv77o _otyrv77o _18u0v77o _mizu1r31 _1guj1r31 _p8tl1r31 _ra3xglyw _pbhaglyw _1q2vglyw _128m1o36 _11ow1o36 _j8b81o36 _1bas14y2 _19h614y2 _1d3914y2 _1ejj1vm4 _1u6l1vm4 _6ssh1vm4"])
|
|
54
54
|
}), lozenge);
|
|
55
55
|
};
|
|
56
56
|
const LozengeActionTrigger = props => {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
._1yt41e9d{padding:var(--ds-space-200,1rem)}
|
|
3
2
|
._zulpcxkx{gap:var(--ds-space-100,.5rem)}
|
|
4
3
|
._zulpud5o{gap:.625rem}._16jlkb7n{flex-grow:1}
|
|
4
|
+
._19bv1e9d{padding-left:var(--ds-space-200,1rem)}
|
|
5
5
|
._1bsb1osq{width:100%}
|
|
6
6
|
._1e0c1txw{display:flex}
|
|
7
7
|
._1o9zidpf{flex-shrink:0}
|
|
8
8
|
._2lx21bp4{flex-direction:column}
|
|
9
9
|
._4cvr1h6o{align-items:center}
|
|
10
10
|
._4t3i1k92{height:1.25rem}
|
|
11
|
+
._ca0q1e9d{padding-top:var(--ds-space-200,1rem)}
|
|
11
12
|
._e2oo1osq span{width:100%}
|
|
12
|
-
._i0dl1wug{flex-basis:auto}
|
|
13
|
+
._i0dl1wug{flex-basis:auto}
|
|
14
|
+
._n3td1e9d{padding-bottom:var(--ds-space-200,1rem)}
|
|
15
|
+
._u5f31e9d{padding-right:var(--ds-space-200,1rem)}
|
|
@@ -31,7 +31,7 @@ const HoverCardLoadingViewNew = ({
|
|
|
31
31
|
const LoadingSkeleton = fg('platform-smart-card-icon-migration') ? LoadingSkeletonNew : LoadingSkeletonOld;
|
|
32
32
|
return /*#__PURE__*/React.createElement("div", {
|
|
33
33
|
"data-testid": testId,
|
|
34
|
-
className: ax(["
|
|
34
|
+
className: ax(["_1e0c1txw _2lx21bp4 _ca0q1e9d _u5f31e9d _n3td1e9d _19bv1e9d"])
|
|
35
35
|
}, /*#__PURE__*/React.createElement("div", {
|
|
36
36
|
className: ax(["_zulpud5o _1e0c1txw _2lx21bp4 _4cvr1h6o"])
|
|
37
37
|
}, /*#__PURE__*/React.createElement(CustomBlock, _extends({}, titleBlockProps, {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import
|
|
4
|
+
import ButtonOld from '@atlaskit/button';
|
|
5
5
|
import ErrorIcon from '@atlaskit/icon/utility/migration/error';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
8
8
|
import { R300 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { messages } from '../../../messages';
|
|
10
10
|
import { HoverCard } from '../../HoverCard';
|
|
11
|
+
import { ActionButton } from '../common/action-button';
|
|
11
12
|
import { Frame } from '../Frame';
|
|
12
13
|
import { AKIconWrapper } from '../Icon';
|
|
13
14
|
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
14
15
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
15
|
-
import {
|
|
16
|
+
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
16
17
|
import { IconStyledButton as IconStyledButtonOld } from '../styled-emotion';
|
|
17
18
|
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
18
19
|
const iconWrapperStyles = xcss({
|
|
@@ -36,10 +37,16 @@ export class InlineCardErroredView extends React.Component {
|
|
|
36
37
|
const {
|
|
37
38
|
onRetry
|
|
38
39
|
} = this.props;
|
|
39
|
-
const
|
|
40
|
-
|
|
40
|
+
const Button = withFrameStyleControl(ButtonOld, this.frameRef);
|
|
41
|
+
if (fg('platform-linking-visual-refresh-v1')) {
|
|
42
|
+
return onRetry && /*#__PURE__*/React.createElement(Button, {
|
|
43
|
+
component: ActionButton,
|
|
44
|
+
onClick: this.handleRetry
|
|
45
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again));
|
|
46
|
+
}
|
|
47
|
+
return onRetry && /*#__PURE__*/React.createElement(Button, {
|
|
41
48
|
spacing: "none",
|
|
42
|
-
component: fg('bandicoots-compiled-migration-smartcard') ?
|
|
49
|
+
component: fg('bandicoots-compiled-migration-smartcard') ? IconStyledButtonOldVisualRefresh : IconStyledButtonOld,
|
|
43
50
|
onClick: this.handleRetry,
|
|
44
51
|
role: "button"
|
|
45
52
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again));
|