@atlaskit/inline-edit 13.2.2 → 13.4.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 +17 -0
- package/__perf__/inline-edit.tsx +3 -3
- package/codemods/migrates/add-comments-when-validate-found.ts +1 -1
- package/codemods/migrates/lift-InlineEditStateless-to-default.ts +2 -1
- package/codemods/migrates/lift-InlineEditableTextField-to-its-entry-point.ts +2 -1
- package/codemods/migrates/spread-errorMessage-out-of-fieldProps.ts +2 -2
- package/codemods/migrates/utils.ts +3 -2
- package/dist/cjs/inline-edit.js +1 -1
- package/dist/es2019/inline-edit.js +1 -1
- package/dist/esm/inline-edit.js +1 -1
- package/dist/types/inline-editable-textfield.d.ts +1 -1
- package/dist/types/types.d.ts +4 -4
- package/dist/types-ts4.5/inline-editable-textfield.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +4 -4
- package/extract-react-types/inline-editable-textfield-props.tsx +1 -1
- package/package.json +12 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/inline-edit
|
|
2
2
|
|
|
3
|
+
## 13.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#104208](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104208)
|
|
8
|
+
[`0d4480895db7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0d4480895db7) -
|
|
9
|
+
Add support for React 18.
|
|
10
|
+
|
|
11
|
+
## 13.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#100551](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100551)
|
|
16
|
+
[`f7efc4970ff7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7efc4970ff7) -
|
|
17
|
+
The `label` prop type has been widened to `ReactNode` to be consistent with `Field`'s `label`
|
|
18
|
+
prop types.
|
|
19
|
+
|
|
3
20
|
## 13.2.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/__perf__/inline-edit.tsx
CHANGED
|
@@ -2,11 +2,11 @@ import React, { useState } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { fireEvent } from '@testing-library/dom';
|
|
4
4
|
import {
|
|
5
|
-
InteractionTaskArgs,
|
|
6
|
-
PublicInteractionTask,
|
|
5
|
+
type InteractionTaskArgs,
|
|
6
|
+
type PublicInteractionTask,
|
|
7
7
|
} from 'storybook-addon-performance';
|
|
8
8
|
|
|
9
|
-
import { FieldProps } from '@atlaskit/form';
|
|
9
|
+
import { type FieldProps } from '@atlaskit/form';
|
|
10
10
|
import Textfield from '@atlaskit/textfield';
|
|
11
11
|
|
|
12
12
|
import InlineEdit from '../src';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NodePath } from 'ast-types/lib/node-path';
|
|
2
|
-
import
|
|
1
|
+
import { type NodePath } from 'ast-types/lib/node-path';
|
|
2
|
+
import type { ASTPath, default as core, ImportDeclaration } from 'jscodeshift';
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
getDefaultSpecifierName,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type {
|
|
2
2
|
ASTPath,
|
|
3
|
+
default as core,
|
|
3
4
|
ImportDeclaration,
|
|
4
5
|
JSXAttribute,
|
|
5
6
|
Program,
|
|
6
7
|
} from 'jscodeshift';
|
|
7
|
-
import { Collection } from 'jscodeshift/src/Collection';
|
|
8
|
+
import { type Collection } from 'jscodeshift/src/Collection';
|
|
8
9
|
|
|
9
10
|
function addCommentBefore({
|
|
10
11
|
j,
|
package/dist/cjs/inline-edit.js
CHANGED
|
@@ -29,7 +29,7 @@ var fieldStyles = (0, _react2.css)({
|
|
|
29
29
|
var analyticsAttributes = {
|
|
30
30
|
componentName: 'inlineEdit',
|
|
31
31
|
packageName: "@atlaskit/inline-edit",
|
|
32
|
-
packageVersion: "13.
|
|
32
|
+
packageVersion: "13.4.0"
|
|
33
33
|
};
|
|
34
34
|
var noop = function noop() {};
|
|
35
35
|
var InnerInlineEdit = function InnerInlineEdit(props) {
|
package/dist/esm/inline-edit.js
CHANGED
|
@@ -20,7 +20,7 @@ var fieldStyles = css({
|
|
|
20
20
|
var analyticsAttributes = {
|
|
21
21
|
componentName: 'inlineEdit',
|
|
22
22
|
packageName: "@atlaskit/inline-edit",
|
|
23
|
-
packageVersion: "13.
|
|
23
|
+
packageVersion: "13.4.0"
|
|
24
24
|
};
|
|
25
25
|
var noop = function noop() {};
|
|
26
26
|
var InnerInlineEdit = function InnerInlineEdit(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { InlineEditableTextfieldProps } from './types';
|
|
2
|
+
import { type InlineEditableTextfieldProps } from './types';
|
|
3
3
|
declare const InlineEditableTextfield: (props: InlineEditableTextfieldProps) => jsx.JSX.Element;
|
|
4
4
|
export default InlineEditableTextfield;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FieldProps } from '@atlaskit/form';
|
|
1
|
+
import { type default as React, type ReactNode } from 'react';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type FieldProps } from '@atlaskit/form';
|
|
4
4
|
interface CommonProps {
|
|
5
5
|
/** Additional information to be included in the `context` of analytics events that come from button. */
|
|
6
6
|
analyticsContext?: Record<string, any>;
|
|
@@ -11,7 +11,7 @@ interface CommonProps {
|
|
|
11
11
|
/** The user input entered into the field during `editView`. This value is updated and saved by `onConfirm`. */
|
|
12
12
|
defaultValue: any;
|
|
13
13
|
/** Label above the input field that communicates what value should be entered. */
|
|
14
|
-
label?:
|
|
14
|
+
label?: ReactNode;
|
|
15
15
|
/** Displays an inline dialog with a message when the field input is invalid. This is handled by `react-final-form`. */
|
|
16
16
|
validate?: (value: any, formState: {}, fieldState: {}) => string | void | Promise<string | void>;
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { InlineEditableTextfieldProps } from './types';
|
|
2
|
+
import { type InlineEditableTextfieldProps } from './types';
|
|
3
3
|
declare const InlineEditableTextfield: (props: InlineEditableTextfieldProps) => jsx.JSX.Element;
|
|
4
4
|
export default InlineEditableTextfield;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FieldProps } from '@atlaskit/form';
|
|
1
|
+
import { type default as React, type ReactNode } from 'react';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type FieldProps } from '@atlaskit/form';
|
|
4
4
|
interface CommonProps {
|
|
5
5
|
/** Additional information to be included in the `context` of analytics events that come from button. */
|
|
6
6
|
analyticsContext?: Record<string, any>;
|
|
@@ -11,7 +11,7 @@ interface CommonProps {
|
|
|
11
11
|
/** The user input entered into the field during `editView`. This value is updated and saved by `onConfirm`. */
|
|
12
12
|
defaultValue: any;
|
|
13
13
|
/** Label above the input field that communicates what value should be entered. */
|
|
14
|
-
label?:
|
|
14
|
+
label?: ReactNode;
|
|
15
15
|
/** Displays an inline dialog with a message when the field input is invalid. This is handled by `react-final-form`. */
|
|
16
16
|
validate?: (value: any, formState: {}, fieldState: {}) => string | void | Promise<string | void>;
|
|
17
17
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/inline-edit",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0",
|
|
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/"
|
|
@@ -32,25 +32,26 @@
|
|
|
32
32
|
"website": {
|
|
33
33
|
"name": "Inline edit",
|
|
34
34
|
"category": "Components"
|
|
35
|
-
}
|
|
35
|
+
},
|
|
36
|
+
"runReact18": true
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
39
|
-
"@atlaskit/button": "^17.
|
|
40
|
+
"@atlaskit/button": "^17.17.0",
|
|
40
41
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
41
|
-
"@atlaskit/form": "^10.
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
43
|
-
"@atlaskit/inline-dialog": "^14.
|
|
44
|
-
"@atlaskit/primitives": "^6.
|
|
42
|
+
"@atlaskit/form": "^10.2.0",
|
|
43
|
+
"@atlaskit/icon": "^22.3.0",
|
|
44
|
+
"@atlaskit/inline-dialog": "^14.1.0",
|
|
45
|
+
"@atlaskit/primitives": "^6.3.0",
|
|
45
46
|
"@atlaskit/textfield": "^6.3.0",
|
|
46
47
|
"@atlaskit/theme": "^12.8.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
48
49
|
"@atlaskit/visually-hidden": "^1.3.0",
|
|
49
50
|
"@babel/runtime": "^7.0.0",
|
|
50
51
|
"@emotion/react": "^11.7.1"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
|
-
"react": "^16.8.0"
|
|
54
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@af/accessibility-testing": "*",
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
"@atlaskit/docs": "*",
|
|
60
61
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
61
62
|
"@atlaskit/section-message": "^6.5.0",
|
|
62
|
-
"@atlaskit/select": "^17.
|
|
63
|
+
"@atlaskit/select": "^17.10.0",
|
|
63
64
|
"@atlaskit/ssr": "*",
|
|
64
65
|
"@atlaskit/tag": "^12.2.0",
|
|
65
66
|
"@atlaskit/tag-group": "^10.3.0",
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
"ast-types": "^0.13.3",
|
|
73
74
|
"jscodeshift": "^0.13.0",
|
|
74
75
|
"react-dom": "^16.8.0",
|
|
76
|
+
"react-select-event": "^5.5.0",
|
|
75
77
|
"storybook-addon-performance": "^0.16.0",
|
|
76
78
|
"typescript": "~5.4.2",
|
|
77
79
|
"wait-for-expect": "^1.2.0"
|