@atlaskit/forge-react-types 0.46.1 → 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 +13 -0
- package/dist/types/components/__generated__/FileCardProps.codegen.d.ts +3 -3
- package/dist/types/components/__generated__/FilePickerProps.codegen.d.ts +6 -6
- package/dist/types-ts4.5/components/__generated__/FileCardProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/__generated__/FilePickerProps.codegen.d.ts +6 -6
- package/package.json +6 -6
- package/src/components/__generated__/FileCardProps.codegen.tsx +13 -13
- package/src/components/__generated__/FilePickerProps.codegen.tsx +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
10
|
+
## 0.46.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 0.46.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FileCardProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9d37f634e1e60eac0f6536fd9bff9abc>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filecard/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filecard/index.tsx <<SignedSource::9312e79a0aa240027297b3e080a2960a>>
|
|
9
9
|
*/
|
|
10
10
|
export type FileCardProps = {
|
|
11
11
|
/**
|
|
@@ -49,7 +49,7 @@ export type FileCardProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
testId?: string;
|
|
51
51
|
/**
|
|
52
|
-
* Upload progress (0-
|
|
52
|
+
* Upload progress (0-1) when isUploading is true
|
|
53
53
|
*/
|
|
54
54
|
uploadProgress?: number;
|
|
55
55
|
};
|
|
@@ -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 - FileCardProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9d37f634e1e60eac0f6536fd9bff9abc>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filecard/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filecard/index.tsx <<SignedSource::9312e79a0aa240027297b3e080a2960a>>
|
|
9
9
|
*/
|
|
10
10
|
export type FileCardProps = {
|
|
11
11
|
/**
|
|
@@ -49,7 +49,7 @@ export type FileCardProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
testId?: string;
|
|
51
51
|
/**
|
|
52
|
-
* Upload progress (0-
|
|
52
|
+
* Upload progress (0-1) when isUploading is true
|
|
53
53
|
*/
|
|
54
54
|
uploadProgress?: number;
|
|
55
55
|
};
|
|
@@ -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/"
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@atlaskit/form": "^14.2.0",
|
|
29
29
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
30
30
|
"@atlaskit/modal-dialog": "^14.6.0",
|
|
31
|
-
"@atlaskit/navigation-system": "^
|
|
32
|
-
"@atlaskit/popup": "^4.
|
|
33
|
-
"@atlaskit/primitives": "^16.
|
|
31
|
+
"@atlaskit/navigation-system": "^5.0.0",
|
|
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",
|
|
37
|
-
"@atlaskit/section-message": "^8.
|
|
37
|
+
"@atlaskit/section-message": "^8.8.0",
|
|
38
38
|
"@atlaskit/select": "^21.3.0",
|
|
39
39
|
"@atlaskit/spinner": "^19.0.0",
|
|
40
40
|
"@atlaskit/tabs": "^18.2.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 - FileCardProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::9d37f634e1e60eac0f6536fd9bff9abc>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filecard/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filecard/index.tsx <<SignedSource::9312e79a0aa240027297b3e080a2960a>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -14,54 +14,54 @@ export type FileCardProps = {
|
|
|
14
14
|
* Whether the file can be deleted
|
|
15
15
|
*/
|
|
16
16
|
canDelete?: boolean;
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
/**
|
|
19
19
|
* Whether the file can be downloaded
|
|
20
20
|
*/
|
|
21
21
|
canDownload?: boolean;
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
/**
|
|
24
24
|
* Error message to display if there's an error
|
|
25
25
|
*/
|
|
26
26
|
error?: string;
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
/**
|
|
29
29
|
* The name of the file to display
|
|
30
30
|
*/
|
|
31
31
|
fileName: string;
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
/**
|
|
34
34
|
* The size of the file in bytes
|
|
35
35
|
*/
|
|
36
36
|
fileSize?: number;
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
/**
|
|
39
39
|
* The MIME type of the file
|
|
40
40
|
*/
|
|
41
41
|
fileType?: string;
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
/**
|
|
44
44
|
* Whether the file is currently being uploaded
|
|
45
45
|
*/
|
|
46
46
|
isUploading?: boolean;
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
/**
|
|
49
49
|
* Callback when the file is deleted
|
|
50
50
|
*/
|
|
51
51
|
onDelete?: () => void;
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
/**
|
|
54
54
|
* Callback when the file is downloaded
|
|
55
55
|
*/
|
|
56
56
|
onDownload?: () => void;
|
|
57
|
-
|
|
57
|
+
|
|
58
58
|
/**
|
|
59
59
|
* Test ID for testing
|
|
60
60
|
*/
|
|
61
61
|
testId?: string;
|
|
62
|
-
|
|
62
|
+
|
|
63
63
|
/**
|
|
64
|
-
* Upload progress (0-
|
|
64
|
+
* Upload progress (0-1) when isUploading is true
|
|
65
65
|
*/
|
|
66
66
|
uploadProgress?: number;
|
|
67
67
|
};
|
|
@@ -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;
|