@atlaskit/forge-react-types 0.27.8 → 0.27.9
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,13 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.27.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#134882](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134882)
|
|
8
|
+
[`ee43e2aa5cd29`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ee43e2aa5cd29) -
|
|
9
|
+
Update InlineEdit types
|
|
10
|
+
|
|
3
11
|
## 0.27.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::883cbf65ce085489448ec7a7b7eab334>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::889a061fb97b1a38f584702345e428c8>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
12
|
-
type EditViewFieldProps = {
|
|
13
|
-
onChange: (value:
|
|
14
|
-
value:
|
|
12
|
+
type EditViewFieldProps<V> = {
|
|
13
|
+
onChange: (value: V) => void;
|
|
14
|
+
value: V;
|
|
15
15
|
errorMessage?: string;
|
|
16
16
|
isInvalid: boolean;
|
|
17
17
|
'aria-invalid': 'true' | 'false';
|
|
18
18
|
isRequired: boolean;
|
|
19
19
|
};
|
|
20
|
-
export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit
|
|
21
|
-
onConfirm: (value:
|
|
22
|
-
editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
|
|
20
|
+
export type InlineEditProps<V = string> = Omit<React.ComponentProps<typeof PlatformInlineEdit<V>>, 'analyticsContext' | 'onConfirm' | 'editView'> & {
|
|
21
|
+
onConfirm: (value: V) => void;
|
|
22
|
+
editView: (fieldProps: EditViewFieldProps<V>) => React.ReactNode;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::883cbf65ce085489448ec7a7b7eab334>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::889a061fb97b1a38f584702345e428c8>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
12
|
-
type EditViewFieldProps = {
|
|
13
|
-
onChange: (value:
|
|
14
|
-
value:
|
|
12
|
+
type EditViewFieldProps<V> = {
|
|
13
|
+
onChange: (value: V) => void;
|
|
14
|
+
value: V;
|
|
15
15
|
errorMessage?: string;
|
|
16
16
|
isInvalid: boolean;
|
|
17
17
|
'aria-invalid': 'true' | 'false';
|
|
18
18
|
isRequired: boolean;
|
|
19
19
|
};
|
|
20
|
-
export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit
|
|
21
|
-
onConfirm: (value:
|
|
22
|
-
editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
|
|
20
|
+
export type InlineEditProps<V = string> = Omit<React.ComponentProps<typeof PlatformInlineEdit<V>>, 'analyticsContext' | 'onConfirm' | 'editView'> & {
|
|
21
|
+
onConfirm: (value: V) => void;
|
|
22
|
+
editView: (fieldProps: EditViewFieldProps<V>) => React.ReactNode;
|
|
23
23
|
};
|
|
24
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/forge-react-types",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.9",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@atlaskit/button": "^20.1.0",
|
|
31
31
|
"@atlaskit/calendar": "^14.5.0",
|
|
32
32
|
"@atlaskit/checkbox": "^13.7.0",
|
|
33
|
-
"@atlaskit/code": "^15.
|
|
33
|
+
"@atlaskit/code": "^15.6.0",
|
|
34
34
|
"@atlaskit/datetime-picker": "^14.0.0",
|
|
35
35
|
"@atlaskit/dynamic-table": "^14.20.0",
|
|
36
36
|
"@atlaskit/empty-state": "^7.11.0",
|
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::883cbf65ce085489448ec7a7b7eab334>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::889a061fb97b1a38f584702345e428c8>>
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
|
|
12
12
|
|
|
13
|
-
type EditViewFieldProps = {
|
|
14
|
-
onChange: (value:
|
|
15
|
-
value:
|
|
13
|
+
type EditViewFieldProps<V> = {
|
|
14
|
+
onChange: (value: V) => void;
|
|
15
|
+
value: V;
|
|
16
16
|
errorMessage?: string;
|
|
17
17
|
isInvalid: boolean;
|
|
18
18
|
'aria-invalid': 'true' | 'false';
|
|
19
19
|
isRequired: boolean;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export type InlineEditProps = Omit<
|
|
23
|
-
React.ComponentProps<typeof PlatformInlineEdit
|
|
24
|
-
'analyticsContext' | 'onConfirm'
|
|
22
|
+
export type InlineEditProps<V = string> = Omit<
|
|
23
|
+
React.ComponentProps<typeof PlatformInlineEdit<V>>,
|
|
24
|
+
'analyticsContext' | 'onConfirm' | 'editView'
|
|
25
25
|
> & {
|
|
26
26
|
// ADS has an additional analyticsEvent arg that is not optional. We don't use this in UI Kit and it can't be removed due to breaking changes in products
|
|
27
|
-
onConfirm: (value:
|
|
28
|
-
editView: (fieldProps: EditViewFieldProps) => React.ReactNode;
|
|
27
|
+
onConfirm: (value: V) => void;
|
|
28
|
+
editView: (fieldProps: EditViewFieldProps<V>) => React.ReactNode;
|
|
29
29
|
};
|