uploadcare-widget
Advanced tools
Comparing version 3.0.1 to 3.1.0
{ | ||
"name": "uploadcare-widget", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "uploadcare-widget", | ||
@@ -16,2 +16,15 @@ "main": "uploadcare.min.js", | ||
}, | ||
"keywords": [ | ||
"uploadcare", | ||
"widget", | ||
"uploader", | ||
"filepicker", | ||
"dialog", | ||
"upload", | ||
"store", | ||
"file", | ||
"files", | ||
"image", | ||
"images" | ||
], | ||
"author": "", | ||
@@ -18,0 +31,0 @@ "license": "MIT", |
@@ -22,4 +22,4 @@ # Uploadcare Widget [![Build Status][travis-img]][travis] | ||
<a href="https://uploadcare.com/widget/configure/" title="Play with Widget"> | ||
<img src="https://ucarecdn.com/dfb7fc44-ff37-4936-bb1e-e94667c8e3ee/-/format/auto/-/resize/x600/-/stretch/fill/-/setfill/191919/-/resize/2192x760/-/crop/1776x760/416,0/-/overlay/90964191-dfa2-4a22-8118-8a9e460fff9b/338x600/1200,80/-/quality/lighter/-/format/auto/" | ||
width="888" alt="Widget v3 sreenshots on tablet and mobile"> | ||
<img src="https://ucarecdn.com/021e5297-c1c4-43d4-97fc-6de7dd97c856/" | ||
width="888" alt="Widget in action"> | ||
</a> | ||
@@ -56,3 +56,3 @@ | ||
By default, `uploadcare.full.min.js` is exported for npm and other package managers. | ||
By default, `uploadcare.min.js` is exported for npm and other package managers. | ||
@@ -63,2 +63,12 @@ ## Install | ||
### NPM | ||
```bash | ||
npm install uploadcare-widget --save | ||
``` | ||
```javascript | ||
import uploadcare from 'uploadcare-widget' | ||
``` | ||
### CDN | ||
@@ -82,12 +92,2 @@ | ||
### NPM | ||
```bash | ||
npm install uploadcare-widget --save | ||
``` | ||
```javascript | ||
import uploadcare from 'uploadcare-widget' | ||
``` | ||
### Other install methods | ||
@@ -136,26 +136,4 @@ | ||
```javascript | ||
import React, {Component} from 'react' | ||
import uploadcare from 'uploadcare-widget' | ||
See [demo app](https://github.com/uploadcare/uploadcare-widget-react-demo/). | ||
class Uploader extends Component { | ||
componentDidMount() { | ||
uploadcare.start({publicKey: 'YOUR_PUBLIC_KEY'}) | ||
} | ||
render() { | ||
return ( | ||
<div> | ||
<input type='text' role='uploadcare-uploader'/> | ||
</div> | ||
) | ||
} | ||
} | ||
export default Uploader | ||
``` | ||
See [full demo](https://github.com/uploadcare/uploadcare-widget-react-demo/). | ||
### Usage with Angular | ||
@@ -162,0 +140,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2365651
37453
216