@dimah-s3/ui 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -30,15 +30,17 @@ Colors default to your shadcn theme (`--primary`, `--muted`, …). Override
30
30
  ## Quick start
31
31
 
32
32
  ```tsx
33
- import { createS3Client } from "@dimah-s3/react";
34
- import { UploadButton, UploadDropzone } from "@dimah-s3/ui";
33
+ import { createS3Client, useUpload } from "@dimah-s3/react";
34
+ import { UploadDropzone } from "@dimah-s3/ui";
35
35
 
36
36
  export const s3Client = createS3Client();
37
37
 
38
38
  export function UploadDemo() {
39
+ const upload = useUpload({ route: "uploads" });
40
+
39
41
  return (
40
42
  <s3Client.Provider>
41
- <UploadDropzone route="uploads" />
43
+ <UploadDropzone upload={upload} />
42
44
  </s3Client.Provider>
43
45
  );
44
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimah-s3/ui",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Pre-built React UI components for S3 file upload, download, and delete",
5
5
  "keywords": [
6
6
  "s3",
@@ -46,8 +46,8 @@
46
46
  "css"
47
47
  ],
48
48
  "dependencies": {
49
- "@dimah-s3/core": "1.2.0",
50
- "@dimah-s3/react": "1.2.0",
49
+ "@dimah-s3/core": "1.2.1",
50
+ "@dimah-s3/react": "1.2.1",
51
51
  "react-file-icon": "^1.6.0"
52
52
  },
53
53
  "peerDependencies": {