@shipstatic/drop 0.1.11 → 0.1.12

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/README.md CHANGED
@@ -502,6 +502,7 @@ interface ProcessedFile extends StaticFile {
502
502
  interface ClientError {
503
503
  error: string;
504
504
  details: string;
505
+ errors: string[];
505
506
  isClientError: true;
506
507
  }
507
508
 
package/dist/index.cjs CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var react = require('react');
4
4
  var ship = require('@shipstatic/ship');
5
+ var types = require('@shipstatic/types');
5
6
 
6
7
  var __create = Object.create;
7
8
  var __defProp = Object.defineProperty;
@@ -11777,15 +11778,9 @@ function normalizePath(path) {
11777
11778
  function isZipFile(file) {
11778
11779
  return file.type === "application/zip" || file.type === "application/x-zip-compressed" || file.name.toLowerCase().endsWith(".zip");
11779
11780
  }
11780
-
11781
- // src/types.ts
11782
11781
  var FILE_STATUSES = {
11783
- PENDING: "pending",
11782
+ ...types.FileValidationStatus,
11784
11783
  PROCESSING: "processing",
11785
- VALIDATION_FAILED: "validation_failed",
11786
- PROCESSING_ERROR: "processing_error",
11787
- EMPTY_FILE: "empty_file",
11788
- READY: "ready",
11789
11784
  UPLOADING: "uploading",
11790
11785
  COMPLETE: "complete",
11791
11786
  ERROR: "error"
@@ -11980,6 +11975,7 @@ function useDrop(options) {
11980
11975
  const noValidError = {
11981
11976
  error: "No Valid Files",
11982
11977
  details: "None of the provided files could be processed.",
11978
+ errors: [],
11983
11979
  isClientError: true
11984
11980
  };
11985
11981
  setState({
@@ -11994,6 +11990,7 @@ function useDrop(options) {
11994
11990
  const processingError = {
11995
11991
  error: "Processing Failed",
11996
11992
  details: `Failed to process files: ${error instanceof Error ? error.message : String(error)}`,
11993
+ errors: [],
11997
11994
  isClientError: true
11998
11995
  };
11999
11996
  setState((prev) => ({