@atlaskit/inline-edit 13.7.0 → 13.7.2
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 +15 -0
- package/dist/cjs/inline-edit.js +5 -1
- package/dist/es2019/inline-edit.js +5 -1
- package/dist/esm/inline-edit.js +5 -1
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/inline-edit
|
|
2
2
|
|
|
3
|
+
## 13.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`04ca60ed535e8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04ca60ed535e8) -
|
|
8
|
+
[ux] Changes InlineEdit behaviour to call form reset() function when cancelling edit through
|
|
9
|
+
escape key press by default. Changes made behind feature flag
|
|
10
|
+
platform-design-system-inline-edit-reset-on-escape.
|
|
11
|
+
|
|
12
|
+
## 13.7.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 13.7.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/dist/cjs/inline-edit.js
CHANGED
|
@@ -14,6 +14,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
14
14
|
var _noop = _interopRequireDefault(require("@atlaskit/ds-lib/noop"));
|
|
15
15
|
var _Field = _interopRequireDefault(require("@atlaskit/form/Field"));
|
|
16
16
|
var _Form = _interopRequireDefault(require("@atlaskit/form/Form"));
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _pressable = _interopRequireDefault(require("@atlaskit/primitives/pressable"));
|
|
18
19
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
19
20
|
var _buttons = _interopRequireDefault(require("./internal/buttons"));
|
|
@@ -33,7 +34,7 @@ var fieldStyles = (0, _react2.css)({
|
|
|
33
34
|
var analyticsAttributes = {
|
|
34
35
|
componentName: 'inlineEdit',
|
|
35
36
|
packageName: "@atlaskit/inline-edit",
|
|
36
|
-
packageVersion: "13.7.
|
|
37
|
+
packageVersion: "13.7.2"
|
|
37
38
|
};
|
|
38
39
|
var InnerInlineEdit = function InnerInlineEdit(props) {
|
|
39
40
|
var _props$startWithEditV = props.startWithEditViewOpen,
|
|
@@ -191,6 +192,9 @@ var InnerInlineEdit = function InnerInlineEdit(props) {
|
|
|
191
192
|
onKeyDown: function onKeyDown(e) {
|
|
192
193
|
_onKeyDown(e);
|
|
193
194
|
if (e.key === 'Esc' || e.key === 'Escape') {
|
|
195
|
+
if ((0, _platformFeatureFlags.fg)('platform-design-system-inline-edit-reset-on-escape')) {
|
|
196
|
+
reset();
|
|
197
|
+
}
|
|
194
198
|
onCancel();
|
|
195
199
|
}
|
|
196
200
|
},
|
|
@@ -10,6 +10,7 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
|
10
10
|
import __noop from '@atlaskit/ds-lib/noop';
|
|
11
11
|
import Field from '@atlaskit/form/Field';
|
|
12
12
|
import Form from '@atlaskit/form/Form';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import Pressable from '@atlaskit/primitives/pressable';
|
|
14
15
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
15
16
|
import Buttons from './internal/buttons';
|
|
@@ -22,7 +23,7 @@ const fieldStyles = css({
|
|
|
22
23
|
const analyticsAttributes = {
|
|
23
24
|
componentName: 'inlineEdit',
|
|
24
25
|
packageName: "@atlaskit/inline-edit",
|
|
25
|
-
packageVersion: "13.7.
|
|
26
|
+
packageVersion: "13.7.2"
|
|
26
27
|
};
|
|
27
28
|
const InnerInlineEdit = props => {
|
|
28
29
|
const {
|
|
@@ -167,6 +168,9 @@ const InnerInlineEdit = props => {
|
|
|
167
168
|
onKeyDown: e => {
|
|
168
169
|
onKeyDown(e);
|
|
169
170
|
if (e.key === 'Esc' || e.key === 'Escape') {
|
|
171
|
+
if (fg('platform-design-system-inline-edit-reset-on-escape')) {
|
|
172
|
+
reset();
|
|
173
|
+
}
|
|
170
174
|
onCancel();
|
|
171
175
|
}
|
|
172
176
|
},
|
package/dist/esm/inline-edit.js
CHANGED
|
@@ -14,6 +14,7 @@ import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
|
14
14
|
import __noop from '@atlaskit/ds-lib/noop';
|
|
15
15
|
import Field from '@atlaskit/form/Field';
|
|
16
16
|
import Form from '@atlaskit/form/Form';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
18
|
import Pressable from '@atlaskit/primitives/pressable';
|
|
18
19
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
19
20
|
import Buttons from './internal/buttons';
|
|
@@ -26,7 +27,7 @@ var fieldStyles = css({
|
|
|
26
27
|
var analyticsAttributes = {
|
|
27
28
|
componentName: 'inlineEdit',
|
|
28
29
|
packageName: "@atlaskit/inline-edit",
|
|
29
|
-
packageVersion: "13.7.
|
|
30
|
+
packageVersion: "13.7.2"
|
|
30
31
|
};
|
|
31
32
|
var InnerInlineEdit = function InnerInlineEdit(props) {
|
|
32
33
|
var _props$startWithEditV = props.startWithEditViewOpen,
|
|
@@ -184,6 +185,9 @@ var InnerInlineEdit = function InnerInlineEdit(props) {
|
|
|
184
185
|
onKeyDown: function onKeyDown(e) {
|
|
185
186
|
_onKeyDown(e);
|
|
186
187
|
if (e.key === 'Esc' || e.key === 'Escape') {
|
|
188
|
+
if (fg('platform-design-system-inline-edit-reset-on-escape')) {
|
|
189
|
+
reset();
|
|
190
|
+
}
|
|
187
191
|
onCancel();
|
|
188
192
|
}
|
|
189
193
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-edit",
|
|
3
|
-
"version": "13.7.
|
|
3
|
+
"version": "13.7.2",
|
|
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/"
|
|
@@ -25,10 +25,6 @@
|
|
|
25
25
|
"homepage": "https://atlassian.design/components/inline-edit/",
|
|
26
26
|
"atlassian": {
|
|
27
27
|
"team": "Design System Team",
|
|
28
|
-
"releaseModel": "continuous",
|
|
29
|
-
"productPushConsumption": [
|
|
30
|
-
"jira"
|
|
31
|
-
],
|
|
32
28
|
"website": {
|
|
33
29
|
"name": "Inline edit",
|
|
34
30
|
"category": "Components"
|
|
@@ -40,9 +36,10 @@
|
|
|
40
36
|
"@atlaskit/button": "^20.1.0",
|
|
41
37
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
42
38
|
"@atlaskit/form": "^10.5.0",
|
|
43
|
-
"@atlaskit/icon": "^22.
|
|
44
|
-
"@atlaskit/inline-dialog": "^
|
|
45
|
-
"@atlaskit/
|
|
39
|
+
"@atlaskit/icon": "^22.16.0",
|
|
40
|
+
"@atlaskit/inline-dialog": "^15.0.0",
|
|
41
|
+
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
42
|
+
"@atlaskit/primitives": "^12.1.0",
|
|
46
43
|
"@atlaskit/textfield": "^6.5.0",
|
|
47
44
|
"@atlaskit/theme": "^13.0.0",
|
|
48
45
|
"@atlaskit/tokens": "^1.59.0",
|
|
@@ -56,16 +53,17 @@
|
|
|
56
53
|
"devDependencies": {
|
|
57
54
|
"@af/accessibility-testing": "*",
|
|
58
55
|
"@af/integration-testing": "*",
|
|
59
|
-
"@atlaskit/datetime-picker": "^
|
|
56
|
+
"@atlaskit/datetime-picker": "^14.0.0",
|
|
60
57
|
"@atlaskit/docs": "*",
|
|
61
58
|
"@atlaskit/ds-lib": "^2.5.0",
|
|
62
59
|
"@atlaskit/section-message": "^6.6.0",
|
|
63
60
|
"@atlaskit/select": "^17.15.0",
|
|
64
61
|
"@atlaskit/ssr": "*",
|
|
65
|
-
"@atlaskit/tag": "^12.
|
|
62
|
+
"@atlaskit/tag": "^12.6.0",
|
|
66
63
|
"@atlaskit/tag-group": "^10.5.0",
|
|
67
64
|
"@atlaskit/textarea": "^5.6.0",
|
|
68
65
|
"@atlaskit/visual-regression": "*",
|
|
66
|
+
"@atlassian/feature-flags-test-utils": "*",
|
|
69
67
|
"@emotion/styled": "^11.0.0",
|
|
70
68
|
"@testing-library/dom": "^10.1.0",
|
|
71
69
|
"@testing-library/react": "^12.1.5",
|
|
@@ -106,5 +104,10 @@
|
|
|
106
104
|
"./inline-editable-textfield": "./src/entry-points/inline-editable-textfield.ts",
|
|
107
105
|
"./types": "./src/entry-points/types.ts",
|
|
108
106
|
".": "./src/index.ts"
|
|
107
|
+
},
|
|
108
|
+
"platform-feature-flags": {
|
|
109
|
+
"platform-design-system-inline-edit-reset-on-escape": {
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
}
|
|
109
112
|
}
|
|
110
113
|
}
|