@atlaskit/inline-edit 13.5.9 → 13.5.10
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/inline-edit.js +1 -1
- package/dist/cjs/internal/buttons.js +11 -4
- package/dist/es2019/inline-edit.js +1 -1
- package/dist/es2019/internal/buttons.js +7 -4
- package/dist/esm/inline-edit.js +1 -1
- package/dist/esm/internal/buttons.js +11 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/inline-edit
|
|
2
2
|
|
|
3
|
+
## 13.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#119140](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119140)
|
|
8
|
+
[`dbda45aec4c30`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dbda45aec4c30) -
|
|
9
|
+
Migrated usages of deprecated button `UNSAFE` icon size props to new render prop.
|
|
10
|
+
|
|
3
11
|
## 13.5.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/inline-edit.js
CHANGED
|
@@ -31,7 +31,7 @@ var fieldStyles = (0, _react2.css)({
|
|
|
31
31
|
var analyticsAttributes = {
|
|
32
32
|
componentName: 'inlineEdit',
|
|
33
33
|
packageName: "@atlaskit/inline-edit",
|
|
34
|
-
packageVersion: "13.5.
|
|
34
|
+
packageVersion: "13.5.10"
|
|
35
35
|
};
|
|
36
36
|
var noop = function noop() {};
|
|
37
37
|
var InnerInlineEdit = function InnerInlineEdit(props) {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var _react = require("@emotion/react");
|
|
9
10
|
var _new = require("@atlaskit/button/new");
|
|
10
11
|
var _check = _interopRequireDefault(require("@atlaskit/icon/glyph/check"));
|
|
@@ -68,16 +69,22 @@ var Buttons = function Buttons(_ref) {
|
|
|
68
69
|
css: buttonWrapperBaseStyles
|
|
69
70
|
}, (0, _react.jsx)(_new.IconButton, {
|
|
70
71
|
type: "submit",
|
|
71
|
-
icon:
|
|
72
|
-
|
|
72
|
+
icon: function icon(iconProps) {
|
|
73
|
+
return (0, _react.jsx)(_check.default, (0, _extends2.default)({}, iconProps, {
|
|
74
|
+
size: "small"
|
|
75
|
+
}));
|
|
76
|
+
},
|
|
73
77
|
onMouseDown: onMouseDown,
|
|
74
78
|
label: confirmButtonLabel,
|
|
75
79
|
testId: testId && "".concat(testId, "--confirm")
|
|
76
80
|
})), (0, _react.jsx)("div", {
|
|
77
81
|
css: buttonWrapperBaseStyles
|
|
78
82
|
}, (0, _react.jsx)(_new.IconButton, {
|
|
79
|
-
icon:
|
|
80
|
-
|
|
83
|
+
icon: function icon(iconProps) {
|
|
84
|
+
return (0, _react.jsx)(_cross.default, (0, _extends2.default)({}, iconProps, {
|
|
85
|
+
size: "small"
|
|
86
|
+
}));
|
|
87
|
+
},
|
|
81
88
|
label: cancelButtonLabel,
|
|
82
89
|
onClick: onCancelClick,
|
|
83
90
|
onMouseDown: onMouseDown,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
*/
|
|
@@ -61,16 +62,18 @@ const Buttons = ({
|
|
|
61
62
|
css: buttonWrapperBaseStyles
|
|
62
63
|
}, jsx(IconButton, {
|
|
63
64
|
type: "submit",
|
|
64
|
-
icon: ConfirmIcon,
|
|
65
|
-
|
|
65
|
+
icon: iconProps => jsx(ConfirmIcon, _extends({}, iconProps, {
|
|
66
|
+
size: "small"
|
|
67
|
+
})),
|
|
66
68
|
onMouseDown: onMouseDown,
|
|
67
69
|
label: confirmButtonLabel,
|
|
68
70
|
testId: testId && `${testId}--confirm`
|
|
69
71
|
})), jsx("div", {
|
|
70
72
|
css: buttonWrapperBaseStyles
|
|
71
73
|
}, jsx(IconButton, {
|
|
72
|
-
icon: CancelIcon,
|
|
73
|
-
|
|
74
|
+
icon: iconProps => jsx(CancelIcon, _extends({}, iconProps, {
|
|
75
|
+
size: "small"
|
|
76
|
+
})),
|
|
74
77
|
label: cancelButtonLabel,
|
|
75
78
|
onClick: onCancelClick,
|
|
76
79
|
onMouseDown: onMouseDown,
|
package/dist/esm/inline-edit.js
CHANGED
|
@@ -25,7 +25,7 @@ var fieldStyles = css({
|
|
|
25
25
|
var analyticsAttributes = {
|
|
26
26
|
componentName: 'inlineEdit',
|
|
27
27
|
packageName: "@atlaskit/inline-edit",
|
|
28
|
-
packageVersion: "13.5.
|
|
28
|
+
packageVersion: "13.5.10"
|
|
29
29
|
};
|
|
30
30
|
var noop = function noop() {};
|
|
31
31
|
var InnerInlineEdit = function InnerInlineEdit(props) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
*/
|
|
@@ -60,16 +61,22 @@ var Buttons = function Buttons(_ref) {
|
|
|
60
61
|
css: buttonWrapperBaseStyles
|
|
61
62
|
}, jsx(IconButton, {
|
|
62
63
|
type: "submit",
|
|
63
|
-
icon:
|
|
64
|
-
|
|
64
|
+
icon: function icon(iconProps) {
|
|
65
|
+
return jsx(ConfirmIcon, _extends({}, iconProps, {
|
|
66
|
+
size: "small"
|
|
67
|
+
}));
|
|
68
|
+
},
|
|
65
69
|
onMouseDown: onMouseDown,
|
|
66
70
|
label: confirmButtonLabel,
|
|
67
71
|
testId: testId && "".concat(testId, "--confirm")
|
|
68
72
|
})), jsx("div", {
|
|
69
73
|
css: buttonWrapperBaseStyles
|
|
70
74
|
}, jsx(IconButton, {
|
|
71
|
-
icon:
|
|
72
|
-
|
|
75
|
+
icon: function icon(iconProps) {
|
|
76
|
+
return jsx(CancelIcon, _extends({}, iconProps, {
|
|
77
|
+
size: "small"
|
|
78
|
+
}));
|
|
79
|
+
},
|
|
73
80
|
label: cancelButtonLabel,
|
|
74
81
|
onClick: onCancelClick,
|
|
75
82
|
onMouseDown: onMouseDown,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-edit",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.10",
|
|
4
4
|
"description": "An inline edit displays a custom input component that switches between reading and editing on the same page.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|