@shipstatic/drop 0.2.18 → 0.2.20
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 +4 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +5 -28
- package/dist/index.js.map +1 -1
- package/dist/testing.d.cts +1 -2
- package/dist/testing.d.ts +1 -2
- package/dist/{useDrop-DbGbhh56.d.cts → useDrop-ddRfHehl.d.cts} +6 -4
- package/dist/{useDrop-DbGbhh56.d.ts → useDrop-ddRfHehl.d.ts} +6 -4
- package/package.json +5 -5
package/dist/testing.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { c as DropStateValue, P as ProcessedFile, d as DropStatus, a as DropReturn } from './useDrop-
|
|
2
|
-
import '@shipstatic/types';
|
|
1
|
+
import { c as DropStateValue, P as ProcessedFile, d as DropStatus, a as DropReturn } from './useDrop-ddRfHehl.cjs';
|
|
3
2
|
import '@shipstatic/ship';
|
|
4
3
|
|
|
5
4
|
/**
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { c as DropStateValue, P as ProcessedFile, d as DropStatus, a as DropReturn } from './useDrop-
|
|
2
|
-
import '@shipstatic/types';
|
|
1
|
+
import { c as DropStateValue, P as ProcessedFile, d as DropStatus, a as DropReturn } from './useDrop-ddRfHehl.js';
|
|
3
2
|
import '@shipstatic/ship';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ValidationError } from '@shipstatic/types';
|
|
2
1
|
import { Ship } from '@shipstatic/ship';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -6,7 +5,6 @@ import { Ship } from '@shipstatic/ship';
|
|
|
6
5
|
* Imports types from @shipstatic/types (single source of truth)
|
|
7
6
|
* and defines drop-specific types
|
|
8
7
|
*/
|
|
9
|
-
|
|
10
8
|
/**
|
|
11
9
|
* Extended File interface with webkitRelativePath
|
|
12
10
|
* This property is set by browsers for folder uploads and drag-drop
|
|
@@ -29,9 +27,13 @@ declare const FILE_STATUSES: {
|
|
|
29
27
|
type FileStatus = (typeof FILE_STATUSES)[keyof typeof FILE_STATUSES];
|
|
30
28
|
/**
|
|
31
29
|
* Client-side error structure
|
|
32
|
-
* Matches ValidationError from @shipstatic/ship for consistency
|
|
33
30
|
*/
|
|
34
|
-
|
|
31
|
+
interface ClientError {
|
|
32
|
+
error: string;
|
|
33
|
+
details: string;
|
|
34
|
+
errors: string[];
|
|
35
|
+
isClientError: true;
|
|
36
|
+
}
|
|
35
37
|
/**
|
|
36
38
|
* Processed file entry ready for upload
|
|
37
39
|
* Contains both the File object and UI-specific metadata
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ValidationError } from '@shipstatic/types';
|
|
2
1
|
import { Ship } from '@shipstatic/ship';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -6,7 +5,6 @@ import { Ship } from '@shipstatic/ship';
|
|
|
6
5
|
* Imports types from @shipstatic/types (single source of truth)
|
|
7
6
|
* and defines drop-specific types
|
|
8
7
|
*/
|
|
9
|
-
|
|
10
8
|
/**
|
|
11
9
|
* Extended File interface with webkitRelativePath
|
|
12
10
|
* This property is set by browsers for folder uploads and drag-drop
|
|
@@ -29,9 +27,13 @@ declare const FILE_STATUSES: {
|
|
|
29
27
|
type FileStatus = (typeof FILE_STATUSES)[keyof typeof FILE_STATUSES];
|
|
30
28
|
/**
|
|
31
29
|
* Client-side error structure
|
|
32
|
-
* Matches ValidationError from @shipstatic/ship for consistency
|
|
33
30
|
*/
|
|
34
|
-
|
|
31
|
+
interface ClientError {
|
|
32
|
+
error: string;
|
|
33
|
+
details: string;
|
|
34
|
+
errors: string[];
|
|
35
|
+
isClientError: true;
|
|
36
|
+
}
|
|
35
37
|
/**
|
|
36
38
|
* Processed file entry ready for upload
|
|
37
39
|
* Contains both the File object and UI-specific metadata
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipstatic/drop",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "Headless React hook for file dropping, processing, ZIP extraction, and validation - purpose-built for Ship SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@shipstatic/ship": "^0.
|
|
54
|
+
"@shipstatic/ship": "^0.6.0",
|
|
55
55
|
"jszip": "^3.10.1",
|
|
56
56
|
"mime-db": "^1.54.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@shipstatic/types": "^0.
|
|
59
|
+
"@shipstatic/types": "^0.6.0",
|
|
60
60
|
"@testing-library/jest-dom": "^6.9.1",
|
|
61
61
|
"@testing-library/react": "^16.3.2",
|
|
62
62
|
"@testing-library/user-event": "^14.6.1",
|
|
63
63
|
"@types/mime-db": "^1.43.6",
|
|
64
|
-
"@types/node": "^25.
|
|
64
|
+
"@types/node": "^25.3.0",
|
|
65
65
|
"@types/react": "^19.2.14",
|
|
66
66
|
"@types/react-dom": "^19.2.3",
|
|
67
67
|
"@vitest/coverage-v8": "^3.2.4",
|
|
68
68
|
"buffer": "^6.0.3",
|
|
69
|
-
"happy-dom": "^20.6.
|
|
69
|
+
"happy-dom": "^20.6.3",
|
|
70
70
|
"husky": "^9.1.7",
|
|
71
71
|
"jsdom": "^27.4.0",
|
|
72
72
|
"path-browserify": "^1.0.1",
|