@uploadcare/react-uploader
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -33,3 +33,3 @@ import type { ConfigType } from '@uploadcare/blocks'; | ||
declare type TRefUploadCtxProvider = { | ||
refUploadCtxProvider?: Ref<InstanceType<UploadCtxProvider>>; | ||
apiRef?: Ref<InstanceType<UploadCtxProvider>>; | ||
}; | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "@uploadcare/react-uploader", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"private": false, | ||
@@ -82,3 +82,3 @@ "type": "module", | ||
], | ||
"gitHead": "a840e902a659630ef34e224c639eabb538fb5625" | ||
"gitHead": "527857b4701f54c979544316995a808b8337ae35" | ||
} |
@@ -106,4 +106,4 @@ # Uploadcare React Uploader | ||
For convenience, we provide the ability to access the File Uploader API using `refUploadCtxProvider`. | ||
You can see what methods are available in `refUploadCtxProvider` in the [documentation][uc-docs-file-uploader-api]. | ||
For convenience, we provide the ability to access the File Uploader API using `apiRef`. | ||
You can see what methods are available in `apiRef` in the [documentation][uc-docs-file-uploader-api]. | ||
It is important to note that we now pass all InstanceType from UploadCtxProvider. | ||
@@ -122,3 +122,3 @@ | ||
<FileUploaderRegular refUploadCtxProvider={uploaderRef} pubkey="YOUR_PUBLIC_KEY"/>; | ||
<FileUploaderRegular apiRef={uploaderRef} pubkey="YOUR_PUBLIC_KEY"/>; | ||
} | ||
@@ -125,0 +125,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6
747545