react-imask
Advanced tools
Comparing version 5.2.1 to 6.0.0-alpha.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('imask')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', 'imask'], factory) : | ||
(global = global || self, factory(global.ReactIMask = {}, global.React, global.PropTypes, global.IMask)); | ||
}(this, function (exports, React, PropTypes, IMask) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('imask/esm'), require('react'), require('prop-types'), require('imask/esm/imask')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'imask/esm', 'react', 'prop-types', 'imask/esm/imask'], factory) : | ||
(global = global || self, factory(global.ReactIMask = {}, null, global.React, global.PropTypes, global.IMask)); | ||
}(this, (function (exports, esm, React, PropTypes, IMask) { 'use strict'; | ||
@@ -199,3 +199,3 @@ React = React && React.hasOwnProperty('default') ? React['default'] : React; | ||
// for details see https://github.com/uNmAnNeR/imaskjs/issues/134 | ||
typeof props.value !== 'string' && this.maskRef.value === '')) { | ||
typeof props.value !== 'string' && this.maskRef.value === '' && !this.maskRef.el.isActive)) { | ||
this.maskValue = props.value; | ||
@@ -235,3 +235,3 @@ } | ||
var maskOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._extractMaskOptionsFromProps(Object.assign({}, this.props)); | ||
this.maskRef = new IMask(this.element, maskOptions).on('accept', this._onAccept.bind(this)).on('complete', this._onComplete.bind(this)); | ||
this.maskRef = IMask(this.element, maskOptions).on('accept', this._onAccept.bind(this)).on('complete', this._onComplete.bind(this)); | ||
this.maskValue = this.props.value; | ||
@@ -316,3 +316,3 @@ } | ||
})); | ||
}))); | ||
//# sourceMappingURL=react-imask.js.map |
@@ -5,6 +5,7 @@ { | ||
"license": "MIT", | ||
"version": "5.2.1", | ||
"version": "6.0.0-alpha.0", | ||
"homepage": "https://imask.js.org/", | ||
"description": "React input mask", | ||
"main": "dist/react-imask.js", | ||
"module": "esm/index.js", | ||
"repository": "https://github.com/uNmAnNeR/imaskjs/tree/master/packages/react-imask", | ||
@@ -21,3 +22,3 @@ "scripts": { | ||
"dependencies": { | ||
"imask": "^5.2.1", | ||
"imask": "^6.0.0-alpha.0", | ||
"prop-types": "^15.7.2" | ||
@@ -31,3 +32,3 @@ }, | ||
}, | ||
"gitHead": "471137fa1e64c1adbeb6a2bddbc0616d29c0df7b" | ||
"gitHead": "2e2a8a513ea51b1a8b1efb33459f8c089febcb49" | ||
} |
@@ -23,2 +23,3 @@ # React IMask Plugin | ||
unmask={true} // true|false|'typed' | ||
inputRef={el => this.input = el} // access to nested input | ||
onAccept={ | ||
@@ -25,0 +26,0 @@ // depending on prop above first argument is |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
37748
9
554
72
1
+ Addedimask@6.6.3(transitive)
- Removedimask@5.2.1(transitive)
Updatedimask@^6.0.0-alpha.0