auth0-lock
Advanced tools
Comparing version 11.27.0 to 11.27.1
@@ -7,2 +7,3 @@ --- | ||
assignees: '' | ||
--- | ||
@@ -9,0 +10,0 @@ |
@@ -51,12 +51,16 @@ 'use strict'; | ||
function LoginPane() { | ||
var _temp, _this, _ret; | ||
_classCallCheck(this, LoginPane); | ||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); | ||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleDontRememberPasswordClick = function (e) { | ||
e.preventDefault(); | ||
(0, _actions.showResetPasswordActivity)(l.id(_this.props.lock)); | ||
}, _temp), _possibleConstructorReturn(_this, _ret); | ||
} | ||
LoginPane.prototype.handleDontRememberPasswordClick = function handleDontRememberPasswordClick(e) { | ||
e.preventDefault(); | ||
(0, _actions.showResetPasswordActivity)(l.id(this.props.lock)); | ||
}; | ||
LoginPane.prototype.render = function render() { | ||
@@ -113,4 +117,4 @@ var _props = this.props, | ||
className: 'auth0-lock-alternative-link', | ||
href: (0, _index.forgotPasswordLink)(lock, 'javascript:void(0)'), | ||
onClick: (0, _index.forgotPasswordLink)(lock) ? undefined : this.handleDontRememberPasswordClick.bind(this) | ||
href: (0, _index.forgotPasswordLink)(lock, '#'), | ||
onClick: (0, _index.forgotPasswordLink)(lock) ? undefined : this.handleDontRememberPasswordClick | ||
}, | ||
@@ -117,0 +121,0 @@ forgotPasswordAction |
@@ -105,16 +105,20 @@ 'use strict'; | ||
function LoginSignUpTab() { | ||
var _temp, _this2, _ret; | ||
_classCallCheck(this, LoginSignUpTab); | ||
return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments)); | ||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
return _ret = (_temp = (_this2 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this2), _this2.handleClick = function (e) { | ||
if (_this2.props.href) { | ||
_this2.props.clickWithHrefHandler(); | ||
} else { | ||
e.preventDefault(); | ||
_this2.props.clickHandler(); | ||
} | ||
}, _temp), _possibleConstructorReturn(_this2, _ret); | ||
} | ||
LoginSignUpTab.prototype.handleClick = function handleClick(e) { | ||
if (this.props.href) { | ||
this.props.clickWithHrefHandler(); | ||
} else { | ||
e.preventDefault(); | ||
this.props.clickHandler(); | ||
} | ||
}; | ||
LoginSignUpTab.prototype.render = function render() { | ||
@@ -137,3 +141,3 @@ var _props2 = this.props, | ||
'a', | ||
{ href: href || 'javascript:void(0)', onClick: this.handleClick.bind(this) }, | ||
{ href: href || '#', onClick: this.handleClick }, | ||
label | ||
@@ -140,0 +144,0 @@ ) |
@@ -64,3 +64,3 @@ 'use strict'; | ||
'a', | ||
{ className: 'auth0-lock-resend-link', href: 'javascript:void(0)', onClick: onClick }, | ||
{ className: 'auth0-lock-resend-link', href: '#', onClick: onClick }, | ||
label, | ||
@@ -79,5 +79,14 @@ ' ', | ||
function Resend() { | ||
var _temp, _this2, _ret; | ||
_classCallCheck(this, Resend); | ||
return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments)); | ||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
return _ret = (_temp = (_this2 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this2), _this2.handleClick = function (e) { | ||
e.preventDefault(); | ||
(0, _actions2.resendEmail)(l.id(_this2.props.lock)); | ||
}, _temp), _possibleConstructorReturn(_this2, _ret); | ||
} | ||
@@ -92,3 +101,3 @@ | ||
var resendLink = m.resendAvailable(lock) && _react2.default.createElement(ResendLink, { | ||
onClick: this.handleClick.bind(this), | ||
onClick: this.handleClick, | ||
label: m.resendFailed(lock) ? labels.retry : labels.resend | ||
@@ -125,7 +134,2 @@ }); | ||
Resend.prototype.handleClick = function handleClick(e) { | ||
e.preventDefault(); | ||
(0, _actions2.resendEmail)(l.id(this.props.lock)); | ||
}; | ||
return Resend; | ||
@@ -144,5 +148,7 @@ }(_react2.default.Component); | ||
EmailSentConfirmation.prototype.render = function render() { | ||
var _this4 = this; | ||
var lock = this.props.lock; | ||
var closeHandler = l.ui.closable(lock) ? this.handleClose.bind(this) : undefined; | ||
var _closeHandler = l.ui.closable(lock) ? this.handleClose : undefined; | ||
var labels = { | ||
@@ -158,3 +164,11 @@ failed: i18n.str(lock, 'failedLabel'), | ||
_success_pane2.default, | ||
{ lock: lock, backHandler: this.handleBack.bind(this), closeHandler: closeHandler }, | ||
{ | ||
lock: lock, | ||
backHandler: function backHandler() { | ||
return _this4.handleBack(); | ||
}, | ||
closeHandler: function closeHandler() { | ||
return _closeHandler(); | ||
} | ||
}, | ||
_react2.default.createElement( | ||
@@ -161,0 +175,0 @@ 'p', |
@@ -19,2 +19,3 @@ 'use strict'; | ||
exports.isEmail = isEmail; | ||
exports.showTerms = showTerms; | ||
exports.mustAcceptTerms = mustAcceptTerms; | ||
@@ -61,4 +62,5 @@ exports.termsAccepted = termsAccepted; | ||
var mustAcceptTerms = !!opts.mustAcceptTerms; | ||
var showTerms = opts.showTerms === undefined ? true : !!opts.showTerms; | ||
m = initNS(m, (0, _immutable.Map)({ send: send, mustAcceptTerms: mustAcceptTerms })); | ||
m = initNS(m, (0, _immutable.Map)({ send: send, mustAcceptTerms: mustAcceptTerms, showTerms: showTerms })); | ||
if (opts.defaultLocation && typeof opts.defaultLocation === 'string') { | ||
@@ -155,2 +157,6 @@ m = (0, _phone_number.initLocation)(m, opts.defaultLocation.toUpperCase()); | ||
function showTerms(m) { | ||
return get(m, 'showTerms', true); | ||
} | ||
function mustAcceptTerms(m) { | ||
@@ -157,0 +163,0 @@ return get(m, 'mustAcceptTerms', false); |
@@ -179,3 +179,3 @@ 'use strict'; | ||
function getVersion() { | ||
return '11.27.0'; | ||
return '11.27.1'; | ||
} |
@@ -124,3 +124,3 @@ 'use strict'; | ||
} : undefined; | ||
return terms || (0, _index.mustAcceptTerms)(m) ? _react2.default.createElement( | ||
return terms && (0, _index.showTerms)(m) ? _react2.default.createElement( | ||
_sign_up_terms2.default, | ||
@@ -127,0 +127,0 @@ { |
@@ -111,3 +111,3 @@ 'use strict'; | ||
} : undefined; | ||
return terms || (0, _index3.mustAcceptTerms)(m) ? _react2.default.createElement( | ||
return terms && (0, _index3.showTerms)(m) ? _react2.default.createElement( | ||
_sign_up_terms2.default, | ||
@@ -114,0 +114,0 @@ { |
@@ -45,28 +45,30 @@ 'use strict'; | ||
function VcodePane() { | ||
var _temp, _this, _ret; | ||
_classCallCheck(this, VcodePane); | ||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); | ||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleVcodeChange = function (e) { | ||
e.preventDefault(); | ||
(0, _index3.swap)(_index3.updateEntity, 'lock', l.id(_this.props.lock), _vcode.setVcode, e.target.value); | ||
}, _this.handleResendClick = function (e) { | ||
e.preventDefault(); | ||
var _this$props = _this.props, | ||
lock = _this$props.lock, | ||
onRestart = _this$props.onRestart; | ||
onRestart(l.id(lock)); | ||
}, _temp), _possibleConstructorReturn(_this, _ret); | ||
} | ||
VcodePane.prototype.handleVcodeChange = function handleVcodeChange(e) { | ||
e.preventDefault(); | ||
(0, _index3.swap)(_index3.updateEntity, 'lock', l.id(this.props.lock), _vcode.setVcode, e.target.value); | ||
}; | ||
VcodePane.prototype.handleResendClick = function handleResendClick(e) { | ||
e.preventDefault(); | ||
VcodePane.prototype.render = function render() { | ||
var _props = this.props, | ||
instructions = _props.instructions, | ||
lock = _props.lock, | ||
onRestart = _props.onRestart; | ||
placeholder = _props.placeholder, | ||
resendLabel = _props.resendLabel; | ||
onRestart(l.id(lock)); | ||
}; | ||
VcodePane.prototype.render = function render() { | ||
var _props2 = this.props, | ||
instructions = _props2.instructions, | ||
lock = _props2.lock, | ||
placeholder = _props2.placeholder, | ||
resendLabel = _props2.resendLabel; | ||
var headerText = instructions || null; | ||
@@ -87,3 +89,3 @@ var header = headerText && _react2.default.createElement( | ||
isValid: !c.isFieldVisiblyInvalid(lock, 'vcode') && !l.globalError(lock), | ||
onChange: this.handleVcodeChange.bind(this), | ||
onChange: this.handleVcodeChange, | ||
autoFocus: !(0, _media_utils.isSmallScreen)(), | ||
@@ -98,7 +100,3 @@ placeholder: placeholder, | ||
'a', | ||
{ | ||
className: 'auth0-lock-alternative-link', | ||
href: 'javascript:void(0)', | ||
onClick: this.handleResendClick.bind(this) | ||
}, | ||
{ className: 'auth0-lock-alternative-link', href: '#', onClick: this.handleResendClick }, | ||
resendLabel | ||
@@ -105,0 +103,0 @@ ) |
@@ -123,3 +123,3 @@ 'use strict'; | ||
method: 'registerLanguageDictionary', | ||
url: l.languageBaseUrl(m) + '/js/lock/' + '11.27.0' + '/' + language + '.js', | ||
url: l.languageBaseUrl(m) + '/js/lock/' + '11.27.1' + '/' + language + '.js', | ||
check: function check(str) { | ||
@@ -126,0 +126,0 @@ return str && str === language; |
@@ -45,3 +45,3 @@ 'use strict'; | ||
exports.default = Auth0Lock; | ||
Auth0Lock.version = '11.27.0'; | ||
Auth0Lock.version = '11.27.1'; | ||
@@ -48,0 +48,0 @@ // TODO: should we have different telemetry for classic/passwordless? |
@@ -44,2 +44,2 @@ 'use strict'; | ||
Auth0LockPasswordless.version = '11.27.0'; | ||
Auth0LockPasswordless.version = '11.27.1'; |
@@ -38,3 +38,3 @@ 'use strict'; | ||
className: 'auth0-lock-alternative-link', | ||
href: 'javascript:void(0)', | ||
href: '#', | ||
onClick: function onClick(e) { | ||
@@ -41,0 +41,0 @@ e.preventDefault(); |
{ | ||
"name": "auth0-lock", | ||
"version": "11.27.0", | ||
"version": "11.27.1", | ||
"description": "Auth0 Lock", | ||
@@ -5,0 +5,0 @@ "author": "Auth0 <support@auth0.com> (http://auth0.com)", |
@@ -27,3 +27,3 @@ [![NPM version][npm-image]][npm-url] | ||
<!-- Latest patch release (recommended for production) --> | ||
<script src="https://cdn.auth0.com/js/lock/11.27.0/lock.min.js"></script> | ||
<script src="https://cdn.auth0.com/js/lock/11.27.1/lock.min.js"></script> | ||
``` | ||
@@ -30,0 +30,0 @@ |
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
1408823
22865
238