@atlaskit/inline-edit 13.2.2 → 13.3.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/inline-edit
|
|
2
2
|
|
|
3
|
+
## 13.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#100551](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100551)
|
|
8
|
+
[`f7efc4970ff7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7efc4970ff7) -
|
|
9
|
+
The `label` prop type has been widened to `ReactNode` to be consistent with `Field`'s `label`
|
|
10
|
+
prop types.
|
|
11
|
+
|
|
3
12
|
## 13.2.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
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.3.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.3.0"
|
|
24
24
|
};
|
|
25
25
|
var noop = function noop() {};
|
|
26
26
|
var InnerInlineEdit = function InnerInlineEdit(props) {
|
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 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,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { FieldProps } from '@atlaskit/form';
|
|
1
|
+
import 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.3.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/"
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
39
39
|
"@atlaskit/button": "^17.14.0",
|
|
40
40
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
41
|
-
"@atlaskit/form": "^10.
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/form": "^10.1.0",
|
|
42
|
+
"@atlaskit/icon": "^22.2.0",
|
|
43
43
|
"@atlaskit/inline-dialog": "^14.0.0",
|
|
44
44
|
"@atlaskit/primitives": "^6.1.0",
|
|
45
45
|
"@atlaskit/textfield": "^6.3.0",
|
|
46
46
|
"@atlaskit/theme": "^12.8.0",
|
|
47
|
-
"@atlaskit/tokens": "^1.
|
|
47
|
+
"@atlaskit/tokens": "^1.48.0",
|
|
48
48
|
"@atlaskit/visually-hidden": "^1.3.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1"
|