@atlaskit/inline-message 14.0.5 → 15.0.0
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 +12 -0
- package/dist/cjs/components/inline-message/index.js +2 -6
- package/dist/es2019/components/inline-message/index.js +1 -5
- package/dist/esm/components/inline-message/index.js +2 -6
- package/dist/types/components/inline-message/index.d.ts +0 -6
- package/dist/types-ts4.5/components/inline-message/index.d.ts +0 -6
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/inline-message
|
|
2
2
|
|
|
3
|
+
## 15.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#148091](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148091)
|
|
8
|
+
[`25880861de2d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/25880861de2d3) -
|
|
9
|
+
Removed deprecated `type` prop. Use the `appearance` prop instead.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 14.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -57,9 +57,8 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
57
57
|
secondaryText = _ref$secondaryText === void 0 ? '' : _ref$secondaryText,
|
|
58
58
|
_ref$title = _ref.title,
|
|
59
59
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
60
|
-
_ref$
|
|
61
|
-
|
|
62
|
-
appearance = _ref.appearance,
|
|
60
|
+
_ref$appearance = _ref.appearance,
|
|
61
|
+
appearance = _ref$appearance === void 0 ? 'connectivity' : _ref$appearance,
|
|
63
62
|
children = _ref.children,
|
|
64
63
|
testId = _ref.testId,
|
|
65
64
|
iconLabel = _ref.iconLabel;
|
|
@@ -75,9 +74,6 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
75
74
|
var onCloseDialog = (0, _react.useCallback)(function () {
|
|
76
75
|
return setIsOpen(false);
|
|
77
76
|
}, [setIsOpen]);
|
|
78
|
-
if (!appearance) {
|
|
79
|
-
appearance = type;
|
|
80
|
-
}
|
|
81
77
|
return /*#__PURE__*/React.createElement("div", {
|
|
82
78
|
"data-testid": testId,
|
|
83
79
|
className: (0, _runtime.ax)(["_1e0c1o8l _p12f1osq _nt751r31 _49pcnqa1 _1hvwt94y _kvh01r31 _38q98stv _1o0knqa1 _1yyu1kum", iconColor[appearance]])
|
|
@@ -43,8 +43,7 @@ const InlineMessage = ({
|
|
|
43
43
|
placement = 'bottom-start',
|
|
44
44
|
secondaryText = '',
|
|
45
45
|
title = '',
|
|
46
|
-
|
|
47
|
-
appearance,
|
|
46
|
+
appearance = 'connectivity',
|
|
48
47
|
children,
|
|
49
48
|
testId,
|
|
50
49
|
iconLabel
|
|
@@ -54,9 +53,6 @@ const InlineMessage = ({
|
|
|
54
53
|
setIsOpen(oldState => !oldState);
|
|
55
54
|
}, [setIsOpen]);
|
|
56
55
|
const onCloseDialog = useCallback(() => setIsOpen(false), [setIsOpen]);
|
|
57
|
-
if (!appearance) {
|
|
58
|
-
appearance = type;
|
|
59
|
-
}
|
|
60
56
|
return /*#__PURE__*/React.createElement("div", {
|
|
61
57
|
"data-testid": testId,
|
|
62
58
|
className: ax(["_1e0c1o8l _p12f1osq _nt751r31 _49pcnqa1 _1hvwt94y _kvh01r31 _38q98stv _1o0knqa1 _1yyu1kum", iconColor[appearance]])
|
|
@@ -47,9 +47,8 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
47
47
|
secondaryText = _ref$secondaryText === void 0 ? '' : _ref$secondaryText,
|
|
48
48
|
_ref$title = _ref.title,
|
|
49
49
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
50
|
-
_ref$
|
|
51
|
-
|
|
52
|
-
appearance = _ref.appearance,
|
|
50
|
+
_ref$appearance = _ref.appearance,
|
|
51
|
+
appearance = _ref$appearance === void 0 ? 'connectivity' : _ref$appearance,
|
|
53
52
|
children = _ref.children,
|
|
54
53
|
testId = _ref.testId,
|
|
55
54
|
iconLabel = _ref.iconLabel;
|
|
@@ -65,9 +64,6 @@ var InlineMessage = function InlineMessage(_ref) {
|
|
|
65
64
|
var onCloseDialog = useCallback(function () {
|
|
66
65
|
return setIsOpen(false);
|
|
67
66
|
}, [setIsOpen]);
|
|
68
|
-
if (!appearance) {
|
|
69
|
-
appearance = type;
|
|
70
|
-
}
|
|
71
67
|
return /*#__PURE__*/React.createElement("div", {
|
|
72
68
|
"data-testid": testId,
|
|
73
69
|
className: ax(["_1e0c1o8l _p12f1osq _nt751r31 _49pcnqa1 _1hvwt94y _kvh01r31 _38q98stv _1o0knqa1 _1yyu1kum", iconColor[appearance]])
|
|
@@ -27,12 +27,6 @@ interface InlineMessageProps {
|
|
|
27
27
|
* confirmation, info, warning, and error.
|
|
28
28
|
*/
|
|
29
29
|
appearance?: IconAppearance;
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-162 Internal documentation for deprecation (no external access)} Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-5207 for more information.
|
|
32
|
-
* Instead use the 'appearance' prop.
|
|
33
|
-
* Set the icon to be used before the title.
|
|
34
|
-
*/
|
|
35
|
-
type?: IconAppearance;
|
|
36
30
|
/**
|
|
37
31
|
* A unique string that appears as a data attribute, `data-testid`,
|
|
38
32
|
* in the rendered code. It is provided to serve as a hook for automated tests.
|
|
@@ -27,12 +27,6 @@ interface InlineMessageProps {
|
|
|
27
27
|
* confirmation, info, warning, and error.
|
|
28
28
|
*/
|
|
29
29
|
appearance?: IconAppearance;
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-162 Internal documentation for deprecation (no external access)} Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-5207 for more information.
|
|
32
|
-
* Instead use the 'appearance' prop.
|
|
33
|
-
* Set the icon to be used before the title.
|
|
34
|
-
*/
|
|
35
|
-
type?: IconAppearance;
|
|
36
30
|
/**
|
|
37
31
|
* A unique string that appears as a data attribute, `data-testid`,
|
|
38
32
|
* in the rendered code. It is provided to serve as a hook for automated tests.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-message",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "An inline message lets users know when important information is available or when an action is required.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/button": "^23.0.0",
|
|
34
|
-
"@atlaskit/icon": "^25.
|
|
34
|
+
"@atlaskit/icon": "^25.6.0",
|
|
35
35
|
"@atlaskit/inline-dialog": "^17.0.0",
|
|
36
|
-
"@atlaskit/primitives": "^14.
|
|
36
|
+
"@atlaskit/primitives": "^14.6.0",
|
|
37
37
|
"@atlaskit/theme": "^18.0.0",
|
|
38
|
-
"@atlaskit/tokens": "^4.
|
|
38
|
+
"@atlaskit/tokens": "^4.8.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"@compiled/react": "^0.18.3"
|
|
41
41
|
},
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"react": "^18.2.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@af/accessibility-testing": "
|
|
47
|
-
"@af/integration-testing": "
|
|
48
|
-
"@af/visual-regression": "
|
|
46
|
+
"@af/accessibility-testing": "workspace:^",
|
|
47
|
+
"@af/integration-testing": "workspace:^",
|
|
48
|
+
"@af/visual-regression": "workspace:^",
|
|
49
49
|
"@atlaskit/docs": "^10.0.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
51
|
-
"@atlaskit/heading": "^5.
|
|
51
|
+
"@atlaskit/heading": "^5.2.0",
|
|
52
52
|
"@atlaskit/link": "^3.1.0",
|
|
53
53
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
54
54
|
"@atlaskit/section-message": "^8.2.0",
|