@atlaskit/forge-react-types 0.46.0 → 0.46.1
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 +7 -0
- package/dist/types/components/__generated__/FilePickerProps.codegen.d.ts +17 -4
- package/dist/types-ts4.5/components/__generated__/FilePickerProps.codegen.d.ts +17 -4
- package/package.json +3 -3
- package/src/components/__generated__/FilePickerProps.codegen.tsx +22 -9
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.46.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5424277535660`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5424277535660) -
|
|
8
|
+
Adds tests and testId prop to UI Kit FilePicker component
|
|
9
|
+
|
|
3
10
|
## 0.46.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -3,19 +3,32 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FilePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5d73fae2f947d6bb42aa42c89624ad67>>
|
|
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::47d9000bc6265446cc40547ca8d46787>>
|
|
9
9
|
*/
|
|
10
10
|
type SerializedFile = {
|
|
11
|
+
data: string;
|
|
11
12
|
name: string;
|
|
12
|
-
type: string;
|
|
13
13
|
size: number;
|
|
14
|
-
|
|
14
|
+
type: string;
|
|
15
15
|
};
|
|
16
16
|
export type FilePickerProps = {
|
|
17
|
+
/**
|
|
18
|
+
* Description of the file picker to be used for file requirements
|
|
19
|
+
*/
|
|
17
20
|
description?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Label of the file picker
|
|
23
|
+
*/
|
|
18
24
|
label?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Test ID for testing
|
|
27
|
+
*/
|
|
28
|
+
testId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Callback function to be called when the files are changed
|
|
31
|
+
*/
|
|
19
32
|
onChange?: (files: SerializedFile[]) => void | undefined;
|
|
20
33
|
};
|
|
21
34
|
export type TFilePicker<T> = (props: FilePickerProps) => T;
|
|
@@ -3,19 +3,32 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FilePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5d73fae2f947d6bb42aa42c89624ad67>>
|
|
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::47d9000bc6265446cc40547ca8d46787>>
|
|
9
9
|
*/
|
|
10
10
|
type SerializedFile = {
|
|
11
|
+
data: string;
|
|
11
12
|
name: string;
|
|
12
|
-
type: string;
|
|
13
13
|
size: number;
|
|
14
|
-
|
|
14
|
+
type: string;
|
|
15
15
|
};
|
|
16
16
|
export type FilePickerProps = {
|
|
17
|
+
/**
|
|
18
|
+
* Description of the file picker to be used for file requirements
|
|
19
|
+
*/
|
|
17
20
|
description?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Label of the file picker
|
|
23
|
+
*/
|
|
18
24
|
label?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Test ID for testing
|
|
27
|
+
*/
|
|
28
|
+
testId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Callback function to be called when the files are changed
|
|
31
|
+
*/
|
|
19
32
|
onChange?: (files: SerializedFile[]) => void | undefined;
|
|
20
33
|
};
|
|
21
34
|
export type TFilePicker<T> = (props: FilePickerProps) => T;
|
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.1",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
28
28
|
"@atlaskit/form": "^14.2.0",
|
|
29
29
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
30
|
-
"@atlaskit/modal-dialog": "^14.
|
|
31
|
-
"@atlaskit/navigation-system": "^4.
|
|
30
|
+
"@atlaskit/modal-dialog": "^14.6.0",
|
|
31
|
+
"@atlaskit/navigation-system": "^4.5.0",
|
|
32
32
|
"@atlaskit/popup": "^4.4.0",
|
|
33
33
|
"@atlaskit/primitives": "^16.0.0",
|
|
34
34
|
"@atlaskit/progress-bar": "^4.0.0",
|
|
@@ -3,23 +3,36 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FilePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5d73fae2f947d6bb42aa42c89624ad67>>
|
|
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::47d9000bc6265446cc40547ca8d46787>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
12
12
|
type SerializedFile = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
data: string;
|
|
14
|
+
name: string;
|
|
15
|
+
size: number;
|
|
16
|
+
type: string;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export type FilePickerProps = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Description of the file picker to be used for file requirements
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Label of the file picker
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Test ID for testing
|
|
30
|
+
*/
|
|
31
|
+
testId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Callback function to be called when the files are changed
|
|
34
|
+
*/
|
|
35
|
+
onChange?: (files: SerializedFile[]) => void | undefined;
|
|
23
36
|
};
|
|
24
37
|
|
|
25
38
|
export type TFilePicker<T> = (props: FilePickerProps) => T;
|