@tecsinapse/cortex-react 1.9.28 → 1.9.29

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.
@@ -37,6 +37,14 @@ export declare enum FileStatus {
37
37
  ERROR = "error",
38
38
  UPLOADING = "uploading"
39
39
  }
40
+ export interface FileError {
41
+ message: string;
42
+ code: string;
43
+ }
44
+ export type FileRejection = {
45
+ file: File;
46
+ errors: FileError[];
47
+ };
40
48
  export type FileUpload<T> = {
41
49
  file: File;
42
50
  metadata?: T;
@@ -1,5 +1,4 @@
1
- import { FileRejection } from 'react-dropzone';
2
- import { UseDropzoneProps, AcceptSpecificMap, type FileUpload } from '../components/Uploader/types';
1
+ import { UseDropzoneProps, AcceptSpecificMap, type FileUpload, FileRejection } from '../components/Uploader/types';
3
2
  interface UseFileUploadOptions<T> {
4
3
  accept?: {
5
4
  IMAGE?: (typeof AcceptSpecificMap.IMAGE)[number][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.9.28",
3
+ "version": "1.9.29",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -48,5 +48,5 @@
48
48
  "react-dom": ">=18.0.0",
49
49
  "tailwind": ">=3.3.0"
50
50
  },
51
- "gitHead": "f8bda97367a7b6347c07119ced2945c3e634a193"
51
+ "gitHead": "992954dd32881718933b1b46f3e516592055e5d8"
52
52
  }