@shipstatic/drop 0.2.22 → 0.2.25

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
@@ -23,7 +23,7 @@ function Uploader() {
23
23
 
24
24
  const handleUpload = async () => {
25
25
  const files = drop.getFilesForUpload();
26
- await ship.deployments.create(files);
26
+ await ship.deployments.upload(files);
27
27
  };
28
28
 
29
29
  return (
@@ -112,7 +112,7 @@ interface DropReturn {
112
112
  files: ProcessedFile[];
113
113
  validFiles: ProcessedFile[];
114
114
  sourceName: string;
115
- status: { title: string; details: string; errors?: string[] } | null;
115
+ status: { title: string; details: string; errors?: string[]; warnings?: string[] } | null;
116
116
 
117
117
  // Prop getters
118
118
  getDropzoneProps: (options?: { clickable?: boolean }) => {...};
@@ -155,7 +155,7 @@ Pass files to Ship SDK:
155
155
 
156
156
  ```tsx
157
157
  const files = drop.getFilesForUpload();
158
- await ship.deployments.create(files);
158
+ await ship.deployments.upload(files);
159
159
  ```
160
160
 
161
161
  ## Testing
@@ -220,7 +220,7 @@ it('calls reset when Clear is clicked', async () => {
220
220
  | `createMockFileWithPath(name, path, ...)` | Mock `File` with `webkitRelativePath` |
221
221
  | `createMockErrorStatus(title?, details?, errors?)` | Mock error status |
222
222
  | `createMockProcessingStatus(title?, details?)` | Mock processing status |
223
- | `createMockReadyStatus(count)` | Mock ready status |
223
+ | `createMockReadyStatus(count)` | Mock ready status (`"N file(s) are ready."`) |
224
224
 
225
225
  ## Requirements
226
226
 
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.6.0/node_modules/@shipstatic/types/dist/index.js
11705
+ // node_modules/.pnpm/@shipstatic+types@0.7.1/node_modules/@shipstatic/types/dist/index.js
11706
11706
  var ErrorType;
11707
11707
  (function(ErrorType2) {
11708
11708
  ErrorType2["Validation"] = "validation_failed";