react-eyedrop
Advanced tools
Comparing version 5.1.3 to 5.2.0
{ | ||
"name": "react-eyedrop", | ||
"version": "5.1.3", | ||
"version": "5.2.0", | ||
"description": "A reusable ColorPick EyeDropper written in React & TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -54,2 +54,3 @@ # React EyeDrop | ||
* **[onPickStart](#api-onPickStart)** <br> | ||
* **[onPickEnd](#api-onPickEnd)** <br> | ||
* React Hook | ||
@@ -155,3 +156,5 @@ * **[Usage](#hook-usage)** | ||
<EyeDropper once /> | ||
/* or */ | ||
<EyeDropper once={false} /> | ||
@@ -205,3 +208,5 @@ ``` | ||
} | ||
<!--------> | ||
<EyeDropper onInit={getPeanut} /> | ||
@@ -214,3 +219,3 @@ /* Will be called when component is mounted */ | ||
###### Expects `function` | ||
###### *Callback for when starting to EyeDrop* | ||
###### *Callback for when you start Eyedropping* | ||
*Example:* | ||
@@ -221,6 +226,26 @@ ``` | ||
} | ||
<!--------> | ||
<EyeDropper onPickStart={getBananas} /> | ||
/* Will be called when starting to EyeDrop */ | ||
``` | ||
<a name="api-onPickEnd"></a> | ||
### **onPickEnd** | ||
###### Expects `function` | ||
###### *Callback for when you stop EyeDropping* | ||
*Example:* | ||
``` | ||
function buyBurritos() { | ||
console.log('Yum!') | ||
} | ||
<!--------> | ||
<EyeDropper onPickEnd={buyBurritos} /> | ||
/* Will be called when you finish EyeDropping */ | ||
``` | ||
# React Hook | ||
@@ -263,2 +288,4 @@ | ||
* 5.2.0 | ||
* Added `onPickEnd` property | ||
* 5.1.3 | ||
@@ -265,0 +292,0 @@ * Pretty serious bugfix |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
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
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
341
11001
2
0
2