@atlaskit/smart-card 35.2.5 → 35.2.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/InlineCard/ErroredView/InlineCardErroredViewOld.js +0 -7
- package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -2
- package/dist/cjs/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.js +1 -26
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +3 -4
- package/dist/cjs/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.js +0 -12
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -2
- package/dist/cjs/view/InlineCard/common/action-button/index.compiled.css +20 -0
- package/dist/cjs/view/InlineCard/common/action-button/index.js +26 -43
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/ErroredView/InlineCardErroredViewOld.js +0 -7
- package/dist/es2019/view/InlineCard/ErroredView/index.js +1 -2
- package/dist/es2019/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.js +2 -27
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +3 -4
- package/dist/es2019/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.js +0 -12
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +1 -2
- package/dist/es2019/view/InlineCard/common/action-button/index.compiled.css +20 -0
- package/dist/es2019/view/InlineCard/common/action-button/index.js +25 -44
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/InlineCardErroredViewOld.js +0 -7
- package/dist/esm/view/InlineCard/ErroredView/index.js +1 -2
- package/dist/esm/view/InlineCard/ForbiddenView/InlineCardForbiddenViewOld.js +2 -27
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +3 -4
- package/dist/esm/view/InlineCard/UnauthorisedView/InlineCardUnauthorizedViewOld.js +0 -12
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -2
- package/dist/esm/view/InlineCard/common/action-button/index.compiled.css +20 -0
- package/dist/esm/view/InlineCard/common/action-button/index.js +26 -43
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/InlineCard/common/action-button/index.d.ts +2 -8
- package/dist/types-ts4.5/view/InlineCard/common/action-button/index.d.ts +2 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 35.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#124939](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/124939)
|
|
8
|
+
[`43119bff17a5e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/43119bff17a5e) -
|
|
9
|
+
[ux] Fix inline card design refresh unresolved view action word wrap
|
|
10
|
+
|
|
3
11
|
## 35.2.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "35.2.
|
|
14
|
+
packageVersion: "35.2.6"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -20,7 +20,6 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
20
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
21
|
var _messages = require("../../../messages");
|
|
22
22
|
var _HoverCard = require("../../HoverCard");
|
|
23
|
-
var _actionButton = require("../common/action-button");
|
|
24
23
|
var _Frame = require("../Frame");
|
|
25
24
|
var _Icon = require("../Icon");
|
|
26
25
|
var _IconEmotion = require("../Icon-emotion");
|
|
@@ -53,12 +52,6 @@ var InlineCardErroredViewOld = exports.InlineCardErroredViewOld = /*#__PURE__*/f
|
|
|
53
52
|
(0, _defineProperty2.default)(_this, "renderActionButton", function () {
|
|
54
53
|
var onRetry = _this.props.onRetry;
|
|
55
54
|
var Button = (0, _withFrameStyleControl.default)(_button.default, _this.frameRef);
|
|
56
|
-
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
57
|
-
return onRetry && /*#__PURE__*/_react.default.createElement(Button, {
|
|
58
|
-
component: _actionButton.ActionButton,
|
|
59
|
-
onClick: _this.handleRetry
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.try_again));
|
|
61
|
-
}
|
|
62
55
|
return onRetry && /*#__PURE__*/_react.default.createElement(Button, {
|
|
63
56
|
spacing: "none",
|
|
64
57
|
component: (0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard') ? _styled.IconStyledButtonOldVisualRefresh : _styledEmotion.IconStyledButton,
|
|
@@ -48,8 +48,7 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
48
48
|
}, [onRetry]);
|
|
49
49
|
var renderActionButton = _react.default.useCallback(function () {
|
|
50
50
|
var Button = (0, _withFrameStyleControl.default)(_button.default, frameRef);
|
|
51
|
-
return onRetry && ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(
|
|
52
|
-
component: _actionButton.ActionButton,
|
|
51
|
+
return onRetry && ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') ? /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
53
52
|
onClick: handleRetry
|
|
54
53
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.try_again)) : /*#__PURE__*/_react.default.createElement(Button, {
|
|
55
54
|
spacing: "none",
|
|
@@ -23,7 +23,6 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
23
23
|
var _colors = require("@atlaskit/theme/colors");
|
|
24
24
|
var _messages = require("../../../messages");
|
|
25
25
|
var _HoverCard = require("../../HoverCard");
|
|
26
|
-
var _actionButton = require("../common/action-button");
|
|
27
26
|
var _Frame = require("../Frame");
|
|
28
27
|
var _Icon = require("../Icon");
|
|
29
28
|
var _IconEmotion = require("../Icon-emotion");
|
|
@@ -116,15 +115,6 @@ var InlineCardForbiddenViewOld = exports.InlineCardForbiddenViewOld = /*#__PURE_
|
|
|
116
115
|
var accessType = (_this$props$requestAc = _this.props.requestAccessContext) === null || _this$props$requestAc === void 0 ? void 0 : _this$props$requestAc.accessType;
|
|
117
116
|
if (_this.state.hasRequestAccessContextMessage) {
|
|
118
117
|
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
119
|
-
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
120
|
-
var isDisabled = accessType === 'PENDING_REQUEST_EXISTS';
|
|
121
|
-
return /*#__PURE__*/_react.default.createElement(Button, {
|
|
122
|
-
onClick: _this.handleRetry,
|
|
123
|
-
component: _actionButton.ActionButton,
|
|
124
|
-
testId: "button-connect-other-account",
|
|
125
|
-
isDisabled: isDisabled
|
|
126
|
-
}, _this.renderForbiddenAccessMessage());
|
|
127
|
-
}
|
|
128
118
|
return /*#__PURE__*/_react.default.createElement(Button, {
|
|
129
119
|
spacing: "none",
|
|
130
120
|
onClick: _this.handleRetry,
|
|
@@ -145,17 +135,6 @@ var InlineCardForbiddenViewOld = exports.InlineCardForbiddenViewOld = /*#__PURE_
|
|
|
145
135
|
}
|
|
146
136
|
}
|
|
147
137
|
if (onAuthorise) {
|
|
148
|
-
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
149
|
-
return /*#__PURE__*/_react.default.createElement(_IconAndTitleLayout.LozengeWrapper, null, /*#__PURE__*/_react.default.createElement(_primitives.Pressable, {
|
|
150
|
-
xcss: actionButtonLozengeStyle,
|
|
151
|
-
onClick: _this.handleRetry,
|
|
152
|
-
testId: "button-connect-other-account"
|
|
153
|
-
}, /*#__PURE__*/_react.default.createElement(_lozenge.default, (0, _extends2.default)({
|
|
154
|
-
appearance: 'moved'
|
|
155
|
-
}, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? {
|
|
156
|
-
isBold: true
|
|
157
|
-
} : undefined), _this.renderForbiddenAccessMessage())));
|
|
158
|
-
}
|
|
159
138
|
return /*#__PURE__*/_react.default.createElement(Button, {
|
|
160
139
|
spacing: "none",
|
|
161
140
|
onClick: _this.handleRetry,
|
|
@@ -204,8 +183,4 @@ var InlineCardForbiddenViewOld = exports.InlineCardForbiddenViewOld = /*#__PURE_
|
|
|
204
183
|
return content;
|
|
205
184
|
}
|
|
206
185
|
}]);
|
|
207
|
-
}(_react.default.Component);
|
|
208
|
-
var actionButtonLozengeStyle = (0, _primitives.xcss)({
|
|
209
|
-
backgroundColor: 'color.background.neutral.subtle',
|
|
210
|
-
padding: 'space.0'
|
|
211
|
-
});
|
|
186
|
+
}(_react.default.Component);
|
|
@@ -94,11 +94,10 @@ var InlineCardForbiddenViewNew = function InlineCardForbiddenViewNew(_ref) {
|
|
|
94
94
|
if (hasRequestAccessContextMessage) {
|
|
95
95
|
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
96
96
|
var isDisabled = accessType === 'PENDING_REQUEST_EXISTS';
|
|
97
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
98
|
+
isDisabled: isDisabled,
|
|
98
99
|
onClick: handleRetry,
|
|
99
|
-
|
|
100
|
-
testId: "button-connect-other-account",
|
|
101
|
-
isDisabled: isDisabled
|
|
100
|
+
testId: "button-connect-other-account"
|
|
102
101
|
}, renderForbiddenAccessMessage());
|
|
103
102
|
}
|
|
104
103
|
return /*#__PURE__*/_react.default.createElement(Button, {
|
|
@@ -17,7 +17,6 @@ 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");
|
|
21
20
|
var _Frame = require("../Frame");
|
|
22
21
|
var _Icon = require("../Icon");
|
|
23
22
|
var _IconEmotion = require("../Icon-emotion");
|
|
@@ -86,17 +85,6 @@ var InlineCardUnauthorizedViewOld = exports.InlineCardUnauthorizedViewOld = func
|
|
|
86
85
|
var renderActionButton = _react.default.useCallback(function () {
|
|
87
86
|
var Button = (0, _withFrameStyleControl.default)(_button.default, frameRef);
|
|
88
87
|
if ((0, _platformFeatureFlags.fg)('bandicoots-compiled-migration-smartcard')) {
|
|
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
88
|
return onAuthorise ? /*#__PURE__*/_react.default.createElement(Button, {
|
|
101
89
|
spacing: "none",
|
|
102
90
|
component: _styled.IconStyledButtonOldVisualRefresh,
|
|
@@ -72,8 +72,7 @@ var InlineCardUnauthorizedViewNew = function InlineCardUnauthorizedViewNew(_ref)
|
|
|
72
72
|
var renderActionButton = _react.default.useCallback(function () {
|
|
73
73
|
var Button = (0, _withFrameStyleControl.default)(_button.default, frameRef);
|
|
74
74
|
if ((0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1')) {
|
|
75
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
76
|
-
component: _actionButton.ActionButton,
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement(_actionButton.ActionButton, {
|
|
77
76
|
onClick: handleConnectAccount,
|
|
78
77
|
testId: "button-connect-account"
|
|
79
78
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_link_account_card_name, {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
2
|
+
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
3
|
+
._1e0c1bgi{display:contents}
|
|
4
|
+
._1e0c1nu9{display:inline}
|
|
5
|
+
._1nmz1hna{word-break:break-word}
|
|
6
|
+
._1y1m1u8q{background-clip:padding-box}
|
|
7
|
+
._80om13gf{cursor:not-allowed}
|
|
8
|
+
._80omtlke{cursor:pointer}
|
|
9
|
+
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
10
|
+
._bfhksyzs{background-color:var(--ds-background-disabled,#091e4208)}
|
|
11
|
+
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
12
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
13
|
+
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
14
|
+
._o5721btx{white-space:break-spaces}
|
|
15
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
16
|
+
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
17
|
+
._u5f312x7{padding-right:var(--ds-space-075,6px)}
|
|
18
|
+
._y3gn18uv{text-align:initial}
|
|
19
|
+
._irr315ej:hover{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
20
|
+
._1di6ip91:active{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,58 +7,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.ActionButton = void 0;
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var _excluded = ["children"];
|
|
16
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
|
+
var _excluded = ["children", "isDisabled"];
|
|
14
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); }
|
|
15
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
|
+
var styles = {
|
|
21
|
+
button: "_1e0c1bgi",
|
|
22
|
+
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz1hna",
|
|
23
|
+
enabled: "_syaz1fxt _80omtlke _bfhkm7j4 _irr315ej _1di6ip91",
|
|
24
|
+
disabled: "_syaz1lh4 _80om13gf _bfhksyzs"
|
|
25
|
+
};
|
|
16
26
|
/**
|
|
17
27
|
* Action button has to be a span for the overflow to work correctly
|
|
18
28
|
*/
|
|
19
29
|
var ActionButton = exports.ActionButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
20
30
|
var children = _ref.children,
|
|
31
|
+
isDisabled = _ref.isDisabled,
|
|
21
32
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}), /*#__PURE__*/
|
|
33
|
-
|
|
34
|
-
xcss: internalButtonStyle
|
|
33
|
+
return /*#__PURE__*/React.createElement(_compiled.Pressable, (0, _extends2.default)({}, props, {
|
|
34
|
+
isDisabled: isDisabled,
|
|
35
|
+
ref: ref
|
|
36
|
+
// We need to reset Pressable fixed font size to allow inline card to inherit the font size
|
|
37
|
+
// from parent component such as paragraph and heading
|
|
38
|
+
,
|
|
39
|
+
style: {
|
|
40
|
+
font: "inherit"
|
|
41
|
+
},
|
|
42
|
+
xcss: styles.button
|
|
43
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
44
|
+
className: (0, _runtime.ax)([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
35
45
|
}, children));
|
|
36
|
-
});
|
|
37
|
-
var actionButtonStyle = (0, _primitives.xcss)({
|
|
38
|
-
textAlign: 'initial',
|
|
39
|
-
display: 'inline',
|
|
40
|
-
borderRadius: 'border.radius.100',
|
|
41
|
-
borderTopLeftRadius: '0px',
|
|
42
|
-
borderBottomLeftRadius: '0px',
|
|
43
|
-
backgroundClip: 'padding-box',
|
|
44
|
-
boxDecorationBreak: 'clone',
|
|
45
|
-
paddingLeft: 'space.075',
|
|
46
|
-
paddingTop: 'space.025',
|
|
47
|
-
paddingBottom: 'space.025',
|
|
48
|
-
paddingRight: 'space.075',
|
|
49
|
-
whiteSpace: 'nowrap',
|
|
50
|
-
backgroundColor: 'color.background.neutral',
|
|
51
|
-
cursor: 'not-allowed',
|
|
52
|
-
color: 'color.text.disabled'
|
|
53
|
-
});
|
|
54
|
-
var internalButtonStyle = (0, _primitives.xcss)({
|
|
55
|
-
fontWeight: 'font.weight.medium'
|
|
56
|
-
});
|
|
57
|
-
var actionButtonNotDisabledStyle = (0, _primitives.xcss)({
|
|
58
|
-
color: 'color.text',
|
|
59
|
-
cursor: 'pointer',
|
|
60
|
-
':hover': {
|
|
61
|
-
backgroundColor: 'color.background.neutral.hovered'
|
|
62
|
-
}
|
|
63
46
|
});
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "35.2.
|
|
23
|
+
packageVersion: "35.2.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: "35.2.
|
|
5
|
+
packageVersion: "35.2.6"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -8,7 +8,6 @@ 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';
|
|
12
11
|
import { Frame } from '../Frame';
|
|
13
12
|
import { AKIconWrapper } from '../Icon';
|
|
14
13
|
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
@@ -38,12 +37,6 @@ export class InlineCardErroredViewOld extends React.Component {
|
|
|
38
37
|
onRetry
|
|
39
38
|
} = this.props;
|
|
40
39
|
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
40
|
return onRetry && /*#__PURE__*/React.createElement(Button, {
|
|
48
41
|
spacing: "none",
|
|
49
42
|
component: fg('bandicoots-compiled-migration-smartcard') ? IconStyledButtonOldVisualRefresh : IconStyledButtonOld,
|
|
@@ -41,8 +41,7 @@ const InlineCardErroredViewNew = ({
|
|
|
41
41
|
}, [onRetry]);
|
|
42
42
|
const renderActionButton = React.useCallback(() => {
|
|
43
43
|
const Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
44
|
-
return onRetry && (fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(
|
|
45
|
-
component: ActionButton,
|
|
44
|
+
return onRetry && (fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
46
45
|
onClick: handleRetry
|
|
47
46
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)) : /*#__PURE__*/React.createElement(Button, {
|
|
48
47
|
spacing: "none",
|
|
@@ -7,11 +7,10 @@ import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
|
7
7
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
8
8
|
import Lozenge from '@atlaskit/lozenge';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
-
import { Box,
|
|
10
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
11
11
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
12
12
|
import { messages } from '../../../messages';
|
|
13
13
|
import { HoverCard } from '../../HoverCard';
|
|
14
|
-
import { ActionButton } from '../common/action-button';
|
|
15
14
|
import { Frame } from '../Frame';
|
|
16
15
|
import { AKIconWrapper } from '../Icon';
|
|
17
16
|
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
@@ -103,15 +102,6 @@ export class InlineCardForbiddenViewOld extends React.Component {
|
|
|
103
102
|
const accessType = (_this$props$requestAc2 = this.props.requestAccessContext) === null || _this$props$requestAc2 === void 0 ? void 0 : _this$props$requestAc2.accessType;
|
|
104
103
|
if (this.state.hasRequestAccessContextMessage) {
|
|
105
104
|
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
106
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
107
|
-
const isDisabled = accessType === 'PENDING_REQUEST_EXISTS';
|
|
108
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
109
|
-
onClick: this.handleRetry,
|
|
110
|
-
component: ActionButton,
|
|
111
|
-
testId: "button-connect-other-account",
|
|
112
|
-
isDisabled: isDisabled
|
|
113
|
-
}, this.renderForbiddenAccessMessage());
|
|
114
|
-
}
|
|
115
105
|
return /*#__PURE__*/React.createElement(Button, {
|
|
116
106
|
spacing: "none",
|
|
117
107
|
onClick: this.handleRetry,
|
|
@@ -132,17 +122,6 @@ export class InlineCardForbiddenViewOld extends React.Component {
|
|
|
132
122
|
}
|
|
133
123
|
}
|
|
134
124
|
if (onAuthorise) {
|
|
135
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
136
|
-
return /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
137
|
-
xcss: actionButtonLozengeStyle,
|
|
138
|
-
onClick: this.handleRetry,
|
|
139
|
-
testId: "button-connect-other-account"
|
|
140
|
-
}, /*#__PURE__*/React.createElement(Lozenge, _extends({
|
|
141
|
-
appearance: 'moved'
|
|
142
|
-
}, fg('platform-component-visual-refresh') ? {
|
|
143
|
-
isBold: true
|
|
144
|
-
} : undefined), this.renderForbiddenAccessMessage())));
|
|
145
|
-
}
|
|
146
125
|
return /*#__PURE__*/React.createElement(Button, {
|
|
147
126
|
spacing: "none",
|
|
148
127
|
onClick: this.handleRetry,
|
|
@@ -186,8 +165,4 @@ export class InlineCardForbiddenViewOld extends React.Component {
|
|
|
186
165
|
}
|
|
187
166
|
return content;
|
|
188
167
|
}
|
|
189
|
-
}
|
|
190
|
-
const actionButtonLozengeStyle = xcss({
|
|
191
|
-
backgroundColor: 'color.background.neutral.subtle',
|
|
192
|
-
padding: 'space.0'
|
|
193
|
-
});
|
|
168
|
+
}
|
|
@@ -84,11 +84,10 @@ const InlineCardForbiddenViewNew = ({
|
|
|
84
84
|
if (hasRequestAccessContextMessage) {
|
|
85
85
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
86
86
|
const isDisabled = accessType === 'PENDING_REQUEST_EXISTS';
|
|
87
|
-
return /*#__PURE__*/React.createElement(
|
|
87
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
88
|
+
isDisabled: isDisabled,
|
|
88
89
|
onClick: handleRetry,
|
|
89
|
-
|
|
90
|
-
testId: "button-connect-other-account",
|
|
91
|
-
isDisabled: isDisabled
|
|
90
|
+
testId: "button-connect-other-account"
|
|
92
91
|
}, renderForbiddenAccessMessage());
|
|
93
92
|
}
|
|
94
93
|
return /*#__PURE__*/React.createElement(Button, {
|
|
@@ -10,7 +10,6 @@ import { N500, R400 } from '@atlaskit/theme/colors';
|
|
|
10
10
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
11
11
|
import { messages } from '../../../messages';
|
|
12
12
|
import { HoverCard } from '../../HoverCard';
|
|
13
|
-
import { ActionButton } from '../common/action-button';
|
|
14
13
|
import { Frame } from '../Frame';
|
|
15
14
|
import { AKIconWrapper } from '../Icon';
|
|
16
15
|
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
@@ -79,17 +78,6 @@ export const InlineCardUnauthorizedViewOld = ({
|
|
|
79
78
|
const renderActionButton = React.useCallback(() => {
|
|
80
79
|
const Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
81
80
|
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
82
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
83
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
84
|
-
component: ActionButton,
|
|
85
|
-
onClick: handleConnectAccount,
|
|
86
|
-
testId: "button-connect-account"
|
|
87
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
88
|
-
values: {
|
|
89
|
-
context
|
|
90
|
-
}
|
|
91
|
-
})));
|
|
92
|
-
}
|
|
93
81
|
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
94
82
|
spacing: "none",
|
|
95
83
|
component: IconStyledButtonOldVisualRefresh,
|
|
@@ -65,8 +65,7 @@ const InlineCardUnauthorizedViewNew = ({
|
|
|
65
65
|
const renderActionButton = React.useCallback(() => {
|
|
66
66
|
const Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
67
67
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
68
|
-
return /*#__PURE__*/React.createElement(
|
|
69
|
-
component: ActionButton,
|
|
68
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
70
69
|
onClick: handleConnectAccount,
|
|
71
70
|
testId: "button-connect-account"
|
|
72
71
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
2
|
+
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
3
|
+
._1e0c1bgi{display:contents}
|
|
4
|
+
._1e0c1nu9{display:inline}
|
|
5
|
+
._1nmz1hna{word-break:break-word}
|
|
6
|
+
._1y1m1u8q{background-clip:padding-box}
|
|
7
|
+
._80om13gf{cursor:not-allowed}
|
|
8
|
+
._80omtlke{cursor:pointer}
|
|
9
|
+
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
10
|
+
._bfhksyzs{background-color:var(--ds-background-disabled,#091e4208)}
|
|
11
|
+
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
12
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
13
|
+
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
14
|
+
._o5721btx{white-space:break-spaces}
|
|
15
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
16
|
+
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
17
|
+
._u5f312x7{padding-right:var(--ds-space-075,6px)}
|
|
18
|
+
._y3gn18uv{text-align:initial}
|
|
19
|
+
._irr315ej:hover{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
20
|
+
._1di6ip91:active{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
@@ -1,54 +1,35 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
3
|
+
import "./index.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { Pressable } from "@atlaskit/primitives/compiled";
|
|
8
|
+
const styles = {
|
|
9
|
+
button: "_1e0c1bgi",
|
|
10
|
+
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz1hna",
|
|
11
|
+
enabled: "_syaz1fxt _80omtlke _bfhkm7j4 _irr315ej _1di6ip91",
|
|
12
|
+
disabled: "_syaz1lh4 _80om13gf _bfhksyzs"
|
|
13
|
+
};
|
|
4
14
|
/**
|
|
5
15
|
* Action button has to be a span for the overflow to work correctly
|
|
6
16
|
*/
|
|
7
17
|
export const ActionButton = /*#__PURE__*/forwardRef(({
|
|
8
18
|
children,
|
|
19
|
+
isDisabled,
|
|
9
20
|
...props
|
|
10
21
|
}, ref) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}), /*#__PURE__*/React.createElement(Box, {
|
|
24
|
-
as: "span",
|
|
25
|
-
xcss: internalButtonStyle
|
|
22
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
|
|
23
|
+
isDisabled: isDisabled,
|
|
24
|
+
ref: ref
|
|
25
|
+
// We need to reset Pressable fixed font size to allow inline card to inherit the font size
|
|
26
|
+
// from parent component such as paragraph and heading
|
|
27
|
+
,
|
|
28
|
+
style: {
|
|
29
|
+
font: `inherit`
|
|
30
|
+
},
|
|
31
|
+
xcss: styles.button
|
|
32
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
33
|
+
className: ax([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
26
34
|
}, children));
|
|
27
|
-
});
|
|
28
|
-
const actionButtonStyle = xcss({
|
|
29
|
-
textAlign: 'initial',
|
|
30
|
-
display: 'inline',
|
|
31
|
-
borderRadius: 'border.radius.100',
|
|
32
|
-
borderTopLeftRadius: '0px',
|
|
33
|
-
borderBottomLeftRadius: '0px',
|
|
34
|
-
backgroundClip: 'padding-box',
|
|
35
|
-
boxDecorationBreak: 'clone',
|
|
36
|
-
paddingLeft: 'space.075',
|
|
37
|
-
paddingTop: 'space.025',
|
|
38
|
-
paddingBottom: 'space.025',
|
|
39
|
-
paddingRight: 'space.075',
|
|
40
|
-
whiteSpace: 'nowrap',
|
|
41
|
-
backgroundColor: 'color.background.neutral',
|
|
42
|
-
cursor: 'not-allowed',
|
|
43
|
-
color: 'color.text.disabled'
|
|
44
|
-
});
|
|
45
|
-
const internalButtonStyle = xcss({
|
|
46
|
-
fontWeight: 'font.weight.medium'
|
|
47
|
-
});
|
|
48
|
-
const actionButtonNotDisabledStyle = xcss({
|
|
49
|
-
color: 'color.text',
|
|
50
|
-
cursor: 'pointer',
|
|
51
|
-
':hover': {
|
|
52
|
-
backgroundColor: 'color.background.neutral.hovered'
|
|
53
|
-
}
|
|
54
35
|
});
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "35.2.
|
|
13
|
+
packageVersion: "35.2.6",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "35.2.
|
|
7
|
+
packageVersion: "35.2.6"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -15,7 +15,6 @@ import { Box, xcss } from '@atlaskit/primitives';
|
|
|
15
15
|
import { R300 } from '@atlaskit/theme/colors';
|
|
16
16
|
import { messages } from '../../../messages';
|
|
17
17
|
import { HoverCard } from '../../HoverCard';
|
|
18
|
-
import { ActionButton } from '../common/action-button';
|
|
19
18
|
import { Frame } from '../Frame';
|
|
20
19
|
import { AKIconWrapper } from '../Icon';
|
|
21
20
|
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
@@ -46,12 +45,6 @@ export var InlineCardErroredViewOld = /*#__PURE__*/function (_React$Component) {
|
|
|
46
45
|
_defineProperty(_this, "renderActionButton", function () {
|
|
47
46
|
var onRetry = _this.props.onRetry;
|
|
48
47
|
var Button = withFrameStyleControl(ButtonOld, _this.frameRef);
|
|
49
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
50
|
-
return onRetry && /*#__PURE__*/React.createElement(Button, {
|
|
51
|
-
component: ActionButton,
|
|
52
|
-
onClick: _this.handleRetry
|
|
53
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again));
|
|
54
|
-
}
|
|
55
48
|
return onRetry && /*#__PURE__*/React.createElement(Button, {
|
|
56
49
|
spacing: "none",
|
|
57
50
|
component: fg('bandicoots-compiled-migration-smartcard') ? IconStyledButtonOldVisualRefresh : IconStyledButtonOld,
|
|
@@ -41,8 +41,7 @@ var InlineCardErroredViewNew = function InlineCardErroredViewNew(_ref) {
|
|
|
41
41
|
}, [onRetry]);
|
|
42
42
|
var renderActionButton = React.useCallback(function () {
|
|
43
43
|
var Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
44
|
-
return onRetry && (fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(
|
|
45
|
-
component: ActionButton,
|
|
44
|
+
return onRetry && (fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
46
45
|
onClick: handleRetry
|
|
47
46
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)) : /*#__PURE__*/React.createElement(Button, {
|
|
48
47
|
spacing: "none",
|
|
@@ -14,11 +14,10 @@ import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
|
14
14
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
15
15
|
import Lozenge from '@atlaskit/lozenge';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
-
import { Box,
|
|
17
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
18
18
|
import { N500, R400 } from '@atlaskit/theme/colors';
|
|
19
19
|
import { messages } from '../../../messages';
|
|
20
20
|
import { HoverCard } from '../../HoverCard';
|
|
21
|
-
import { ActionButton } from '../common/action-button';
|
|
22
21
|
import { Frame } from '../Frame';
|
|
23
22
|
import { AKIconWrapper } from '../Icon';
|
|
24
23
|
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
@@ -109,15 +108,6 @@ export var InlineCardForbiddenViewOld = /*#__PURE__*/function (_React$Component)
|
|
|
109
108
|
var accessType = (_this$props$requestAc = _this.props.requestAccessContext) === null || _this$props$requestAc === void 0 ? void 0 : _this$props$requestAc.accessType;
|
|
110
109
|
if (_this.state.hasRequestAccessContextMessage) {
|
|
111
110
|
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
112
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
113
|
-
var isDisabled = accessType === 'PENDING_REQUEST_EXISTS';
|
|
114
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
115
|
-
onClick: _this.handleRetry,
|
|
116
|
-
component: ActionButton,
|
|
117
|
-
testId: "button-connect-other-account",
|
|
118
|
-
isDisabled: isDisabled
|
|
119
|
-
}, _this.renderForbiddenAccessMessage());
|
|
120
|
-
}
|
|
121
111
|
return /*#__PURE__*/React.createElement(Button, {
|
|
122
112
|
spacing: "none",
|
|
123
113
|
onClick: _this.handleRetry,
|
|
@@ -138,17 +128,6 @@ export var InlineCardForbiddenViewOld = /*#__PURE__*/function (_React$Component)
|
|
|
138
128
|
}
|
|
139
129
|
}
|
|
140
130
|
if (onAuthorise) {
|
|
141
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
142
|
-
return /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
143
|
-
xcss: actionButtonLozengeStyle,
|
|
144
|
-
onClick: _this.handleRetry,
|
|
145
|
-
testId: "button-connect-other-account"
|
|
146
|
-
}, /*#__PURE__*/React.createElement(Lozenge, _extends({
|
|
147
|
-
appearance: 'moved'
|
|
148
|
-
}, fg('platform-component-visual-refresh') ? {
|
|
149
|
-
isBold: true
|
|
150
|
-
} : undefined), _this.renderForbiddenAccessMessage())));
|
|
151
|
-
}
|
|
152
131
|
return /*#__PURE__*/React.createElement(Button, {
|
|
153
132
|
spacing: "none",
|
|
154
133
|
onClick: _this.handleRetry,
|
|
@@ -197,8 +176,4 @@ export var InlineCardForbiddenViewOld = /*#__PURE__*/function (_React$Component)
|
|
|
197
176
|
return content;
|
|
198
177
|
}
|
|
199
178
|
}]);
|
|
200
|
-
}(React.Component);
|
|
201
|
-
var actionButtonLozengeStyle = xcss({
|
|
202
|
-
backgroundColor: 'color.background.neutral.subtle',
|
|
203
|
-
padding: 'space.0'
|
|
204
|
-
});
|
|
179
|
+
}(React.Component);
|
|
@@ -87,11 +87,10 @@ var InlineCardForbiddenViewNew = function InlineCardForbiddenViewNew(_ref) {
|
|
|
87
87
|
if (hasRequestAccessContextMessage) {
|
|
88
88
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
89
89
|
var isDisabled = accessType === 'PENDING_REQUEST_EXISTS';
|
|
90
|
-
return /*#__PURE__*/React.createElement(
|
|
90
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
91
|
+
isDisabled: isDisabled,
|
|
91
92
|
onClick: handleRetry,
|
|
92
|
-
|
|
93
|
-
testId: "button-connect-other-account",
|
|
94
|
-
isDisabled: isDisabled
|
|
93
|
+
testId: "button-connect-other-account"
|
|
95
94
|
}, renderForbiddenAccessMessage());
|
|
96
95
|
}
|
|
97
96
|
return /*#__PURE__*/React.createElement(Button, {
|
|
@@ -10,7 +10,6 @@ import { N500, R400 } from '@atlaskit/theme/colors';
|
|
|
10
10
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
11
11
|
import { messages } from '../../../messages';
|
|
12
12
|
import { HoverCard } from '../../HoverCard';
|
|
13
|
-
import { ActionButton } from '../common/action-button';
|
|
14
13
|
import { Frame } from '../Frame';
|
|
15
14
|
import { AKIconWrapper } from '../Icon';
|
|
16
15
|
import { AKIconWrapper as AKIconWrapperOld } from '../Icon-emotion';
|
|
@@ -79,17 +78,6 @@ export var InlineCardUnauthorizedViewOld = function InlineCardUnauthorizedViewOl
|
|
|
79
78
|
var renderActionButton = React.useCallback(function () {
|
|
80
79
|
var Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
81
80
|
if (fg('bandicoots-compiled-migration-smartcard')) {
|
|
82
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
83
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
84
|
-
component: ActionButton,
|
|
85
|
-
onClick: handleConnectAccount,
|
|
86
|
-
testId: "button-connect-account"
|
|
87
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
88
|
-
values: {
|
|
89
|
-
context: context
|
|
90
|
-
}
|
|
91
|
-
})));
|
|
92
|
-
}
|
|
93
81
|
return onAuthorise ? /*#__PURE__*/React.createElement(Button, {
|
|
94
82
|
spacing: "none",
|
|
95
83
|
component: IconStyledButtonOldVisualRefresh,
|
|
@@ -65,8 +65,7 @@ var InlineCardUnauthorizedViewNew = function InlineCardUnauthorizedViewNew(_ref)
|
|
|
65
65
|
var renderActionButton = React.useCallback(function () {
|
|
66
66
|
var Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
67
67
|
if (fg('platform-linking-visual-refresh-v1')) {
|
|
68
|
-
return /*#__PURE__*/React.createElement(
|
|
69
|
-
component: ActionButton,
|
|
68
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
70
69
|
onClick: handleConnectAccount,
|
|
71
70
|
testId: "button-connect-account"
|
|
72
71
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
2
|
+
._19bv12x7{padding-left:var(--ds-space-075,6px)}
|
|
3
|
+
._1e0c1bgi{display:contents}
|
|
4
|
+
._1e0c1nu9{display:inline}
|
|
5
|
+
._1nmz1hna{word-break:break-word}
|
|
6
|
+
._1y1m1u8q{background-clip:padding-box}
|
|
7
|
+
._80om13gf{cursor:not-allowed}
|
|
8
|
+
._80omtlke{cursor:pointer}
|
|
9
|
+
._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
|
|
10
|
+
._bfhksyzs{background-color:var(--ds-background-disabled,#091e4208)}
|
|
11
|
+
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
12
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
13
|
+
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
14
|
+
._o5721btx{white-space:break-spaces}
|
|
15
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
16
|
+
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
17
|
+
._u5f312x7{padding-right:var(--ds-space-075,6px)}
|
|
18
|
+
._y3gn18uv{text-align:initial}
|
|
19
|
+
._irr315ej:hover{background-color:var(--ds-background-neutral-hovered,#091e4224)}
|
|
20
|
+
._1di6ip91:active{background-color:var(--ds-background-neutral-pressed,#091e424f)}
|
|
@@ -1,53 +1,36 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children"];
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
var _excluded = ["children", "isDisabled"];
|
|
5
|
+
import "./index.compiled.css";
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
+
import { forwardRef } from 'react';
|
|
9
|
+
import { Pressable } from "@atlaskit/primitives/compiled";
|
|
10
|
+
var styles = {
|
|
11
|
+
button: "_1e0c1bgi",
|
|
12
|
+
innerContainer: "_1e0c1nu9 _1y1m1u8q _16d9qvcn _k48p1wq8 _19bv12x7 _ca0qv77o _n3tdv77o _u5f312x7 _y3gn18uv _o5721btx _1nmz1hna",
|
|
13
|
+
enabled: "_syaz1fxt _80omtlke _bfhkm7j4 _irr315ej _1di6ip91",
|
|
14
|
+
disabled: "_syaz1lh4 _80om13gf _bfhksyzs"
|
|
15
|
+
};
|
|
6
16
|
/**
|
|
7
17
|
* Action button has to be a span for the overflow to work correctly
|
|
8
18
|
*/
|
|
9
19
|
export var ActionButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
20
|
var children = _ref.children,
|
|
21
|
+
isDisabled = _ref.isDisabled,
|
|
11
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}), /*#__PURE__*/React.createElement(
|
|
23
|
-
|
|
24
|
-
xcss: internalButtonStyle
|
|
23
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({}, props, {
|
|
24
|
+
isDisabled: isDisabled,
|
|
25
|
+
ref: ref
|
|
26
|
+
// We need to reset Pressable fixed font size to allow inline card to inherit the font size
|
|
27
|
+
// from parent component such as paragraph and heading
|
|
28
|
+
,
|
|
29
|
+
style: {
|
|
30
|
+
font: "inherit"
|
|
31
|
+
},
|
|
32
|
+
xcss: styles.button
|
|
33
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
34
|
+
className: ax([styles.innerContainer, isDisabled ? styles.disabled : styles.enabled])
|
|
25
35
|
}, children));
|
|
26
|
-
});
|
|
27
|
-
var actionButtonStyle = xcss({
|
|
28
|
-
textAlign: 'initial',
|
|
29
|
-
display: 'inline',
|
|
30
|
-
borderRadius: 'border.radius.100',
|
|
31
|
-
borderTopLeftRadius: '0px',
|
|
32
|
-
borderBottomLeftRadius: '0px',
|
|
33
|
-
backgroundClip: 'padding-box',
|
|
34
|
-
boxDecorationBreak: 'clone',
|
|
35
|
-
paddingLeft: 'space.075',
|
|
36
|
-
paddingTop: 'space.025',
|
|
37
|
-
paddingBottom: 'space.025',
|
|
38
|
-
paddingRight: 'space.075',
|
|
39
|
-
whiteSpace: 'nowrap',
|
|
40
|
-
backgroundColor: 'color.background.neutral',
|
|
41
|
-
cursor: 'not-allowed',
|
|
42
|
-
color: 'color.text.disabled'
|
|
43
|
-
});
|
|
44
|
-
var internalButtonStyle = xcss({
|
|
45
|
-
fontWeight: 'font.weight.medium'
|
|
46
|
-
});
|
|
47
|
-
var actionButtonNotDisabledStyle = xcss({
|
|
48
|
-
color: 'color.text',
|
|
49
|
-
cursor: 'pointer',
|
|
50
|
-
':hover': {
|
|
51
|
-
backgroundColor: 'color.background.neutral.hovered'
|
|
52
|
-
}
|
|
53
36
|
});
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "35.2.
|
|
16
|
+
packageVersion: "35.2.6",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box } from '@atlaskit/primitives';
|
|
3
|
-
type ActionButtonProps = ComponentPropsWithRef<typeof Box> & {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
[`data-testid`]?: string;
|
|
6
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
7
2
|
/**
|
|
8
3
|
* Action button has to be a span for the overflow to work correctly
|
|
9
4
|
*/
|
|
10
|
-
export declare const ActionButton:
|
|
11
|
-
export {};
|
|
5
|
+
export declare const ActionButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("@atlaskit/primitives/compiled").PressableProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { Box } from '@atlaskit/primitives';
|
|
3
|
-
type ActionButtonProps = ComponentPropsWithRef<typeof Box> & {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
[`data-testid`]?: string;
|
|
6
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
7
2
|
/**
|
|
8
3
|
* Action button has to be a span for the overflow to work correctly
|
|
9
4
|
*/
|
|
10
|
-
export declare const ActionButton:
|
|
11
|
-
export {};
|
|
5
|
+
export declare const ActionButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("@atlaskit/primitives/compiled").PressableProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|