@uploadcare/react-uploader
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -100,3 +100,3 @@ import a, { Suspense as y, useState as B, useEffect as R, useMemo as f } from "react"; | ||
}; | ||
}, L = "0.4.0", N = "React-Uploader", U = () => `${N}/${L}`, w = ({ condition: e, fallback: t, children: o, ...s }) => e ? /* @__PURE__ */ a.createElement(y, { fallback: t, ...s }, o) : /* @__PURE__ */ a.createElement(a.Fragment, null, t), A = () => { | ||
}, L = "0.5.0", N = "React-Uploader", U = () => `${N}/${L}`, w = ({ condition: e, fallback: t, children: o, ...s }) => e ? /* @__PURE__ */ a.createElement(y, { fallback: t, ...s }, o) : /* @__PURE__ */ a.createElement(a.Fragment, null, t), A = () => { | ||
const [e, t] = B(!1); | ||
@@ -103,0 +103,0 @@ return R(() => { |
{ | ||
"name": "@uploadcare/react-uploader", | ||
"description": "React component for file uploads using Uploadcare", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"private": false, | ||
@@ -84,3 +84,3 @@ "type": "module", | ||
], | ||
"gitHead": "1edddd9395d2d73bf92a8b9508c8df2e2aa6a89f" | ||
"gitHead": "11a342d3a5d0b243ad7ee35228b61024c191f191" | ||
} |
@@ -61,3 +61,4 @@ # Uploadcare React Uploader | ||
```jsx | ||
import {FileUploaderRegular} from "@uploadcare/react-uploader"; | ||
import { FileUploaderRegular } from "@uploadcare/react-uploader"; | ||
import "@uploadcare/react-adapter/core.css"; | ||
@@ -70,3 +71,4 @@ <FileUploaderRegular pubkey="YOUR_PUBLIC_KEY"/>; | ||
```jsx | ||
import {FileUploaderInline} from "@uploadcare/react-uploader"; | ||
import { FileUploaderInline } from "@uploadcare/react-uploader"; | ||
import "@uploadcare/react-adapter/core.css"; | ||
@@ -79,3 +81,4 @@ <FileUploaderInline pubkey="YOUR_PUBLIC_KEY"/>; | ||
```jsx | ||
import {FileUploaderMinimal} from "@uploadcare/react-uploader"; | ||
import { FileUploaderMinimal } from "@uploadcare/react-uploader"; | ||
import "@uploadcare/react-adapter/core.css"; | ||
@@ -97,3 +100,4 @@ <FileUploaderMinimal pubkey="YOUR_PUBLIC_KEY"/>; | ||
```jsx | ||
import {FileUploaderRegular} from "@uploadcare/react-uploader"; | ||
import { FileUploaderRegular } from "@uploadcare/react-uploader"; | ||
import "@uploadcare/react-adapter/core.css"; | ||
@@ -120,2 +124,3 @@ <FileUploaderRegular className="fileUploaderWrapper" pubkey="YOUR_PUBLIC_KEY"/>; | ||
} from "@uploadcare/react-uploader"; | ||
import "@uploadcare/react-adapter/core.css"; | ||
@@ -141,3 +146,4 @@ const Example = () => { | ||
```jsx | ||
import {FileUploaderRegular} from "@uploadcare/react-uploader"; | ||
import { FileUploaderRegular } from "@uploadcare/react-uploader"; | ||
import "@uploadcare/react-adapter/core.css"; | ||
@@ -144,0 +150,0 @@ <FileUploaderRegular |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
133889
214
0