@atlaskit/forge-react-types 0.46.2 → 0.46.3
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,12 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.46.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9e501a31036fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e501a31036fc) -
|
|
8
|
+
Update FilePicker onChange type to support async handlers
|
|
9
|
+
|
|
3
10
|
## 0.46.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FilePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f332eb19d077747f3cc76d5a8b197048>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::1563faca9175de1a53e4f304cea93c78>>
|
|
9
9
|
*/
|
|
10
10
|
type SerializedFile = {
|
|
11
11
|
data: string;
|
|
@@ -23,13 +23,13 @@ export type FilePickerProps = {
|
|
|
23
23
|
*/
|
|
24
24
|
label?: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Callback function to be called when the files are changed
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
onChange?: (files: SerializedFile[]) => void | Promise<void>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Test ID for testing
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
testId?: string;
|
|
33
33
|
};
|
|
34
34
|
export type TFilePicker<T> = (props: FilePickerProps) => T;
|
|
35
35
|
export {};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FilePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f332eb19d077747f3cc76d5a8b197048>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::1563faca9175de1a53e4f304cea93c78>>
|
|
9
9
|
*/
|
|
10
10
|
type SerializedFile = {
|
|
11
11
|
data: string;
|
|
@@ -23,13 +23,13 @@ export type FilePickerProps = {
|
|
|
23
23
|
*/
|
|
24
24
|
label?: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Callback function to be called when the files are changed
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
onChange?: (files: SerializedFile[]) => void | Promise<void>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Test ID for testing
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
testId?: string;
|
|
33
33
|
};
|
|
34
34
|
export type TFilePicker<T> = (props: FilePickerProps) => T;
|
|
35
35
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/forge-react-types",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.3",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
30
30
|
"@atlaskit/modal-dialog": "^14.6.0",
|
|
31
31
|
"@atlaskit/navigation-system": "^5.0.0",
|
|
32
|
-
"@atlaskit/popup": "^4.
|
|
33
|
-
"@atlaskit/primitives": "^16.
|
|
32
|
+
"@atlaskit/popup": "^4.5.0",
|
|
33
|
+
"@atlaskit/primitives": "^16.1.0",
|
|
34
34
|
"@atlaskit/progress-bar": "^4.0.0",
|
|
35
35
|
"@atlaskit/progress-tracker": "^10.3.0",
|
|
36
36
|
"@atlaskit/radio": "^8.3.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/textfield": "^8.0.0",
|
|
45
45
|
"@atlaskit/toggle": "^15.1.0",
|
|
46
46
|
"@atlaskit/tokens": "^7.0.0",
|
|
47
|
-
"@atlaskit/tooltip": "^20.
|
|
47
|
+
"@atlaskit/tooltip": "^20.7.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FilePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f332eb19d077747f3cc76d5a8b197048>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::1563faca9175de1a53e4f304cea93c78>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -26,13 +26,13 @@ export type FilePickerProps = {
|
|
|
26
26
|
*/
|
|
27
27
|
label?: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Callback function to be called when the files are changed
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
onChange?: (files: SerializedFile[]) => void | Promise<void>;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Test ID for testing
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
testId?: string;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export type TFilePicker<T> = (props: FilePickerProps) => T;
|