auth0-lock
Advanced tools
Comparing version 11.24.5 to 11.25.0
@@ -56,12 +56,12 @@ 'use strict'; | ||
); | ||
var theme = (0, _index2.authButtonsTheme)(model); | ||
var connection = (0, _enterprise.quickAuthConnection)(model); | ||
var connectionName = connection.getIn(['name']); | ||
var connectionDomain = connection.getIn(['domains', 0]); | ||
var connectionDisplayName = connection.getIn(['displayName']) || null; | ||
var preferConnectionDisplayName = l.ui.preferConnectionDisplayName(model); | ||
var buttonTheme = theme.get(connection.get('name')); | ||
var buttonLabel = buttonTheme && buttonTheme.get('displayName') || connectionDomain && i18n.str('loginAtLabel', connectionDomain) || i18n.str('loginAtLabel', connectionName); | ||
var buttonLabel = buttonTheme && buttonTheme.get('displayName') || connectionDomain && i18n.str('loginAtLabel', preferConnectionDisplayName && connectionDisplayName ? connectionDisplayName : connectionDomain) || i18n.str('loginAtLabel', connectionName); | ||
@@ -68,0 +68,0 @@ var primaryColor = buttonTheme && buttonTheme.get('primaryColor'); |
@@ -146,3 +146,4 @@ 'use strict'; | ||
strategy: strategyName, | ||
type: connectionType | ||
type: connectionType, | ||
displayName: connection.display_name | ||
}; | ||
@@ -149,0 +150,0 @@ |
@@ -293,2 +293,3 @@ 'use strict'; | ||
allowAutocomplete: !!options.allowAutocomplete, | ||
preferConnectionDisplayName: !!options.preferConnectionDisplayName, | ||
authButtonsTheme: (typeof authButtons === 'undefined' ? 'undefined' : _typeof(authButtons)) === 'object' ? authButtons : {}, | ||
@@ -365,2 +366,5 @@ allowShowPassword: !!options.allowShowPassword, | ||
}, | ||
preferConnectionDisplayName: function preferConnectionDisplayName(lock) { | ||
return getUIAttribute(lock, 'preferConnectionDisplayName'); | ||
}, | ||
rememberLastLogin: function rememberLastLogin(m) { | ||
@@ -367,0 +371,0 @@ return tget(m, 'rememberLastLogin', getUIAttribute(m, 'rememberLastLogin')); |
@@ -179,3 +179,3 @@ 'use strict'; | ||
function getVersion() { | ||
return '11.24.5'; | ||
return '11.25.0'; | ||
} |
@@ -119,3 +119,3 @@ 'use strict'; | ||
method: 'registerLanguageDictionary', | ||
url: l.languageBaseUrl(m) + '/js/lock/' + '11.24.5' + '/' + language + '.js', | ||
url: l.languageBaseUrl(m) + '/js/lock/' + '11.25.0' + '/' + language + '.js', | ||
check: function check(str) { | ||
@@ -122,0 +122,0 @@ return str && str === language; |
@@ -45,3 +45,3 @@ 'use strict'; | ||
exports.default = Auth0Lock; | ||
Auth0Lock.version = '11.24.5'; | ||
Auth0Lock.version = '11.25.0'; | ||
@@ -48,0 +48,0 @@ // TODO: should we have different telemetry for classic/passwordless? |
@@ -44,2 +44,2 @@ 'use strict'; | ||
Auth0LockPasswordless.version = '11.24.5'; | ||
Auth0LockPasswordless.version = '11.25.0'; |
{ | ||
"name": "auth0-lock", | ||
"version": "11.24.5", | ||
"version": "11.25.0", | ||
"description": "Auth0 Lock", | ||
@@ -5,0 +5,0 @@ "author": "Auth0 <support@auth0.com> (http://auth0.com)", |
@@ -26,3 +26,3 @@ [![NPM version][npm-image]][npm-url] | ||
<!-- Latest patch release (recommended for production) --> | ||
<script src="https://cdn.auth0.com/js/lock/11.24.5/lock.min.js"></script> | ||
<script src="https://cdn.auth0.com/js/lock/11.25.0/lock.min.js"></script> | ||
``` | ||
@@ -267,2 +267,3 @@ | ||
- **allowPasswordAutocomplete {Boolean}**: Determines whether the password field will allow autocomplete; setting this to `true` is required for password manager support and to avoid many cases of adverse behavior. Defaults to `false`. | ||
- **preferConnectionDisplayName {Boolean}**: If true, Lock will try to use the connection display name as configured in the manage dashboard, if available. | ||
@@ -269,0 +270,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
1355575
236
21911
609