@idealyst/files 1.2.102 → 1.2.103
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/files",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.103",
|
|
4
4
|
"description": "Cross-platform file picker, upload, and local file management for React and React Native",
|
|
5
5
|
"documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/files#readme",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"publish:npm": "npm publish"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@idealyst/components": "^1.2.
|
|
41
|
-
"@idealyst/theme": "^1.2.
|
|
40
|
+
"@idealyst/components": "^1.2.103",
|
|
41
|
+
"@idealyst/theme": "^1.2.103",
|
|
42
42
|
"react": ">=16.8.0",
|
|
43
43
|
"react-native": ">=0.60.0",
|
|
44
44
|
"react-native-blob-util": ">=0.19.0",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@idealyst/components": "^1.2.
|
|
70
|
-
"@idealyst/theme": "^1.2.
|
|
69
|
+
"@idealyst/components": "^1.2.103",
|
|
70
|
+
"@idealyst/theme": "^1.2.103",
|
|
71
71
|
"@types/react": "^19.1.0",
|
|
72
72
|
"@types/react-native": "^0.73.0",
|
|
73
73
|
"react": "^19.1.0",
|
|
@@ -58,7 +58,7 @@ export function createUseFileUploadHook(createFileUploader: CreateFileUploaderFa
|
|
|
58
58
|
*/
|
|
59
59
|
const addFiles = useCallback((
|
|
60
60
|
files: PickedFile | PickedFile[],
|
|
61
|
-
uploadConfig: UploadConfig
|
|
61
|
+
uploadConfig: Pick<UploadConfig, 'url'> & Partial<Omit<UploadConfig, 'url'>>
|
|
62
62
|
): string[] => {
|
|
63
63
|
if (!uploaderRef.current) return [];
|
|
64
64
|
|
package/src/types.ts
CHANGED
|
@@ -673,7 +673,7 @@ export interface UseFileUploadResult {
|
|
|
673
673
|
|
|
674
674
|
// Actions
|
|
675
675
|
/** Add files to upload queue */
|
|
676
|
-
addFiles: (files: PickedFile | PickedFile[], config: UploadConfig) => string[];
|
|
676
|
+
addFiles: (files: PickedFile | PickedFile[], config: Pick<UploadConfig, 'url'> & Partial<Omit<UploadConfig, 'url'>>) => string[];
|
|
677
677
|
|
|
678
678
|
/** Start processing queue */
|
|
679
679
|
start: () => void;
|