@atlaskit/smart-card 23.4.0 → 23.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +8 -1
- package/dist/cjs/view/InlineCard/index.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +7 -1
- package/dist/es2019/view/InlineCard/index.js +1 -0
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +7 -1
- package/dist/esm/view/InlineCard/index.js +1 -0
- package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 23.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9dd78d9e76e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9dd78d9e76e) - [ux] Update button text on inline card unauthorised view to include provider name
|
|
8
|
+
|
|
3
9
|
## 23.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.InlineCardUnauthorizedView = void 0;
|
|
9
9
|
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
10
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
13
|
|
|
12
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -76,6 +78,7 @@ var InlineCardUnauthorizedView = /*#__PURE__*/function (_React$Component) {
|
|
|
76
78
|
});
|
|
77
79
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderMessage", function () {
|
|
78
80
|
var _this$props = _this.props,
|
|
81
|
+
context = _this$props.context,
|
|
79
82
|
onAuthorise = _this$props.onAuthorise,
|
|
80
83
|
url = _this$props.url;
|
|
81
84
|
|
|
@@ -87,7 +90,11 @@ var InlineCardUnauthorizedView = /*#__PURE__*/function (_React$Component) {
|
|
|
87
90
|
component: _styled.IconStyledButton,
|
|
88
91
|
onClick: _this.handleConnectAccount,
|
|
89
92
|
testId: "button-connect-account"
|
|
90
|
-
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.
|
|
93
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.connect_link_account_card_name, {
|
|
94
|
+
values: {
|
|
95
|
+
context: context
|
|
96
|
+
}
|
|
97
|
+
}))));
|
|
91
98
|
});
|
|
92
99
|
return _this;
|
|
93
100
|
}
|
|
@@ -122,6 +122,7 @@ var InlineCard = function InlineCard(_ref) {
|
|
|
122
122
|
var provider = (0, _extractors.extractProvider)(cardDetails);
|
|
123
123
|
return /*#__PURE__*/_react.default.createElement(_UnauthorisedView.InlineCardUnauthorizedView, {
|
|
124
124
|
icon: provider && provider.icon,
|
|
125
|
+
context: provider && provider.text,
|
|
125
126
|
url: url,
|
|
126
127
|
isSelected: isSelected,
|
|
127
128
|
onClick: handleFrameClick,
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
3
4
|
import LockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
@@ -30,6 +31,7 @@ export class InlineCardUnauthorizedView extends React.Component {
|
|
|
30
31
|
|
|
31
32
|
_defineProperty(this, "renderMessage", () => {
|
|
32
33
|
const {
|
|
34
|
+
context,
|
|
33
35
|
onAuthorise,
|
|
34
36
|
url
|
|
35
37
|
} = this.props;
|
|
@@ -40,7 +42,11 @@ export class InlineCardUnauthorizedView extends React.Component {
|
|
|
40
42
|
component: IconStyledButton,
|
|
41
43
|
onClick: this.handleConnectAccount,
|
|
42
44
|
testId: "button-connect-account"
|
|
43
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.
|
|
45
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
46
|
+
values: {
|
|
47
|
+
context
|
|
48
|
+
}
|
|
49
|
+
}))));
|
|
44
50
|
});
|
|
45
51
|
}
|
|
46
52
|
|
|
@@ -75,6 +75,7 @@ export const InlineCard = ({
|
|
|
75
75
|
const provider = extractProvider(cardDetails);
|
|
76
76
|
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedView, {
|
|
77
77
|
icon: provider && provider.icon,
|
|
78
|
+
context: provider && provider.text,
|
|
78
79
|
url: url,
|
|
79
80
|
isSelected: isSelected,
|
|
80
81
|
onClick: handleFrameClick,
|
package/dist/esm/version.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
4
|
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
@@ -51,6 +52,7 @@ export var InlineCardUnauthorizedView = /*#__PURE__*/function (_React$Component)
|
|
|
51
52
|
|
|
52
53
|
_defineProperty(_assertThisInitialized(_this), "renderMessage", function () {
|
|
53
54
|
var _this$props = _this.props,
|
|
55
|
+
context = _this$props.context,
|
|
54
56
|
onAuthorise = _this$props.onAuthorise,
|
|
55
57
|
url = _this$props.url;
|
|
56
58
|
var link = /*#__PURE__*/React.createElement(LinkAppearance, null, url);
|
|
@@ -60,7 +62,11 @@ export var InlineCardUnauthorizedView = /*#__PURE__*/function (_React$Component)
|
|
|
60
62
|
component: IconStyledButton,
|
|
61
63
|
onClick: _this.handleConnectAccount,
|
|
62
64
|
testId: "button-connect-account"
|
|
63
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.
|
|
65
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
66
|
+
values: {
|
|
67
|
+
context: context
|
|
68
|
+
}
|
|
69
|
+
}))));
|
|
64
70
|
});
|
|
65
71
|
|
|
66
72
|
return _this;
|
|
@@ -72,6 +72,7 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
72
72
|
var provider = extractProvider(cardDetails);
|
|
73
73
|
return /*#__PURE__*/React.createElement(InlineCardUnauthorizedView, {
|
|
74
74
|
icon: provider && provider.icon,
|
|
75
|
+
context: provider && provider.text,
|
|
75
76
|
url: url,
|
|
76
77
|
isSelected: isSelected,
|
|
77
78
|
onClick: handleFrameClick,
|
|
@@ -4,6 +4,8 @@ export interface InlineCardUnauthorizedViewProps {
|
|
|
4
4
|
url: string;
|
|
5
5
|
/** The icon of the service (e.g. Dropbox/Asana/Google/etc) to display */
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
|
+
/** The name of the service (e.g. Dropbox/Asana/Google/etc) to display */
|
|
8
|
+
context?: string;
|
|
7
9
|
/** The optional click handler */
|
|
8
10
|
onClick?: React.EventHandler<React.MouseEvent | React.KeyboardEvent>;
|
|
9
11
|
/** What to do when a user hit "Try another account" button */
|