@retab/react 0.0.1 → 0.0.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/dist/index.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +46 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +46 -39
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +243 -34
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1022,7 +1022,6 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
1022
1022
|
mime_type: string;
|
|
1023
1023
|
}>;
|
|
1024
1024
|
predictions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1025
|
-
predictions_draft: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1026
1025
|
human_review_status: z.ZodEnum<["success", "review_required", "reviewed"]>;
|
|
1027
1026
|
origin: z.ZodObject<{
|
|
1028
1027
|
type: z.ZodString;
|
|
@@ -1091,7 +1090,6 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
1091
1090
|
};
|
|
1092
1091
|
human_review_status: "success" | "reviewed" | "review_required";
|
|
1093
1092
|
predictions?: Record<string, any> | null | undefined;
|
|
1094
|
-
predictions_draft?: Record<string, any> | null | undefined;
|
|
1095
1093
|
}, {
|
|
1096
1094
|
id: string;
|
|
1097
1095
|
json_schema: Record<string, any>;
|
|
@@ -1119,7 +1117,6 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
1119
1117
|
human_review_status: "success" | "reviewed" | "review_required";
|
|
1120
1118
|
metadata?: Record<string, string> | undefined;
|
|
1121
1119
|
predictions?: Record<string, any> | null | undefined;
|
|
1122
|
-
predictions_draft?: Record<string, any> | null | undefined;
|
|
1123
1120
|
}>;
|
|
1124
1121
|
type Extraction = z.infer<typeof ExtractionSchema>;
|
|
1125
1122
|
|
|
@@ -1186,7 +1183,7 @@ interface OCRContextType {
|
|
|
1186
1183
|
setCounterFieldLocationUpdated: React.Dispatch<React.SetStateAction<number>>;
|
|
1187
1184
|
isInitializingFieldLocations: (documentId: string, currentIterationId: string) => boolean;
|
|
1188
1185
|
autoPerformOCR: (documentId: string) => Promise<void>;
|
|
1189
|
-
autoComputeFieldLocations: (documentId: string, data: Record<string, any>, file_id: string, currentIterationId: string) => Promise<void>;
|
|
1186
|
+
autoComputeFieldLocations: (documentId: string, data: Record<string, any>, file_id: string, currentIterationId: string, extraction_id?: string | null) => Promise<void>;
|
|
1190
1187
|
refreshOCRUrl: (fileId: string) => Promise<void>;
|
|
1191
1188
|
}
|
|
1192
1189
|
declare function useOCR(): OCRContextType;
|
|
@@ -1407,7 +1404,6 @@ declare const useExtraction: (extractionId: string | null | undefined) => _tanst
|
|
|
1407
1404
|
};
|
|
1408
1405
|
human_review_status: "success" | "reviewed" | "review_required";
|
|
1409
1406
|
predictions?: Record<string, any> | null | undefined;
|
|
1410
|
-
predictions_draft?: Record<string, any> | null | undefined;
|
|
1411
1407
|
} | null, Error>;
|
|
1412
1408
|
|
|
1413
1409
|
/***********************************************************
|
package/dist/index.d.ts
CHANGED
|
@@ -1022,7 +1022,6 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
1022
1022
|
mime_type: string;
|
|
1023
1023
|
}>;
|
|
1024
1024
|
predictions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1025
|
-
predictions_draft: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1026
1025
|
human_review_status: z.ZodEnum<["success", "review_required", "reviewed"]>;
|
|
1027
1026
|
origin: z.ZodObject<{
|
|
1028
1027
|
type: z.ZodString;
|
|
@@ -1091,7 +1090,6 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
1091
1090
|
};
|
|
1092
1091
|
human_review_status: "success" | "reviewed" | "review_required";
|
|
1093
1092
|
predictions?: Record<string, any> | null | undefined;
|
|
1094
|
-
predictions_draft?: Record<string, any> | null | undefined;
|
|
1095
1093
|
}, {
|
|
1096
1094
|
id: string;
|
|
1097
1095
|
json_schema: Record<string, any>;
|
|
@@ -1119,7 +1117,6 @@ declare const ExtractionSchema: z.ZodObject<{
|
|
|
1119
1117
|
human_review_status: "success" | "reviewed" | "review_required";
|
|
1120
1118
|
metadata?: Record<string, string> | undefined;
|
|
1121
1119
|
predictions?: Record<string, any> | null | undefined;
|
|
1122
|
-
predictions_draft?: Record<string, any> | null | undefined;
|
|
1123
1120
|
}>;
|
|
1124
1121
|
type Extraction = z.infer<typeof ExtractionSchema>;
|
|
1125
1122
|
|
|
@@ -1186,7 +1183,7 @@ interface OCRContextType {
|
|
|
1186
1183
|
setCounterFieldLocationUpdated: React.Dispatch<React.SetStateAction<number>>;
|
|
1187
1184
|
isInitializingFieldLocations: (documentId: string, currentIterationId: string) => boolean;
|
|
1188
1185
|
autoPerformOCR: (documentId: string) => Promise<void>;
|
|
1189
|
-
autoComputeFieldLocations: (documentId: string, data: Record<string, any>, file_id: string, currentIterationId: string) => Promise<void>;
|
|
1186
|
+
autoComputeFieldLocations: (documentId: string, data: Record<string, any>, file_id: string, currentIterationId: string, extraction_id?: string | null) => Promise<void>;
|
|
1190
1187
|
refreshOCRUrl: (fileId: string) => Promise<void>;
|
|
1191
1188
|
}
|
|
1192
1189
|
declare function useOCR(): OCRContextType;
|
|
@@ -1407,7 +1404,6 @@ declare const useExtraction: (extractionId: string | null | undefined) => _tanst
|
|
|
1407
1404
|
};
|
|
1408
1405
|
human_review_status: "success" | "reviewed" | "review_required";
|
|
1409
1406
|
predictions?: Record<string, any> | null | undefined;
|
|
1410
|
-
predictions_draft?: Record<string, any> | null | undefined;
|
|
1411
1407
|
} | null, Error>;
|
|
1412
1408
|
|
|
1413
1409
|
/***********************************************************
|