@shipstatic/drop 0.2.17 → 0.2.19

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.cjs CHANGED
@@ -11702,7 +11702,7 @@ var require_mime_db = __commonJS({
11702
11702
  }
11703
11703
  });
11704
11704
 
11705
- // node_modules/.pnpm/@shipstatic+types@0.4.25/node_modules/@shipstatic/types/dist/index.js
11705
+ // node_modules/.pnpm/@shipstatic+types@0.5.3/node_modules/@shipstatic/types/dist/index.js
11706
11706
  var ErrorType;
11707
11707
  (function(ErrorType2) {
11708
11708
  ErrorType2["Validation"] = "validation_failed";
@@ -11928,7 +11928,7 @@ function useDrop(options) {
11928
11928
  [state.value]
11929
11929
  );
11930
11930
  const hasError = react.useMemo(() => state.value === "error", [state.value]);
11931
- const validFiles = react.useMemo(() => ship.getValidFiles(state.files), [state.files]);
11931
+ const validFiles = react.useMemo(() => state.files.filter((f) => f.status === "ready"), [state.files]);
11932
11932
  const getFilesForUpload = react.useCallback(() => {
11933
11933
  return validFiles.map((f) => f.file);
11934
11934
  }, [validFiles]);
@@ -12013,9 +12013,7 @@ function useDrop(options) {
12013
12013
  // Use full path to match server-side validation
12014
12014
  type: f.type,
12015
12015
  // Use corrected MIME type from mime-db, not browser's File.type
12016
- size: f.file.size,
12017
- status: f.status,
12018
- statusMessage: f.statusMessage
12016
+ size: f.file.size
12019
12017
  }));
12020
12018
  const config = await ship$1.getConfig();
12021
12019
  const validation = ship.validateFiles(validatableFiles, config);