@uploadcare/react-uploader 0.2.0 → 0.3.0-alpha.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.
- package/README.md +3 -3
- package/dist/react-uploader.cjs +44 -98
- package/dist/react-uploader.d.ts +1 -1
- package/dist/react-uploader.js +2190 -2145
- package/package.json +4 -4
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -103,8 +103,8 @@ import {FileUploaderRegular} from "@uploadcare/react-uploader";
|
|
|
103
103
|
|
|
104
104
|
## File Uploader API
|
|
105
105
|
|
|
106
|
-
For convenience, we provide the ability to access the File Uploader API using `
|
|
107
|
-
You can see what methods are available in `
|
|
106
|
+
For convenience, we provide the ability to access the File Uploader API using `apiRef`.
|
|
107
|
+
You can see what methods are available in `apiRef` in the [documentation][uc-docs-file-uploader-api].
|
|
108
108
|
It is important to note that we now pass all InstanceType from UploadCtxProvider.
|
|
109
109
|
|
|
110
110
|
```jsx
|
|
@@ -118,7 +118,7 @@ const Example = () => {
|
|
|
118
118
|
const uploaderRef = useRef < InstanceType < UploadCtxProvider > | null > (null);
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
<FileUploaderRegular
|
|
121
|
+
<FileUploaderRegular apiRef={uploaderRef} pubkey="YOUR_PUBLIC_KEY"/>;
|
|
122
122
|
}
|
|
123
123
|
```
|
|
124
124
|
|