auth0-lock 11.30.6 → 11.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.shiprc +1 -1
- package/CHANGELOG.md +9 -0
- package/README.md +2 -1
- package/lib/__tests__/connection/database/reset_password.js +82 -4
- package/lib/__tests__/ui/box/chrome.js +16 -3
- package/lib/connection/database/reset_password.js +15 -0
- package/lib/core/index.js +5 -1
- package/lib/core/web_api/helper.js +1 -1
- package/lib/core.js +1 -1
- package/lib/i18n.js +1 -1
- package/lib/lock.js +1 -1
- package/lib/passwordless.js +1 -1
- package/lib/ui/box/chrome.js +15 -4
- package/package.json +3 -2
package/lib/i18n.js
CHANGED
|
@@ -125,7 +125,7 @@ function assertLanguage(m, language, base) {
|
|
|
125
125
|
function syncLang(m, language, _cb) {
|
|
126
126
|
(0, _cdn_utils.load)({
|
|
127
127
|
method: 'registerLanguageDictionary',
|
|
128
|
-
url: l.languageBaseUrl(m) + '/js/lock/' + '11.
|
|
128
|
+
url: l.languageBaseUrl(m) + '/js/lock/' + '11.31.0' + '/' + language + '.js',
|
|
129
129
|
check: function check(str) {
|
|
130
130
|
return str && str === language;
|
|
131
131
|
},
|
package/lib/lock.js
CHANGED
|
@@ -42,7 +42,7 @@ var Auth0Lock = function (_Core) {
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
exports.default = Auth0Lock;
|
|
45
|
-
Auth0Lock.version = '11.
|
|
45
|
+
Auth0Lock.version = '11.31.0';
|
|
46
46
|
|
|
47
47
|
// TODO: should we have different telemetry for classic/passwordless?
|
|
48
48
|
// TODO: should we set telemetry info before each request?
|
package/lib/passwordless.js
CHANGED
package/lib/ui/box/chrome.js
CHANGED
|
@@ -36,6 +36,10 @@ var _header = require('./header');
|
|
|
36
36
|
|
|
37
37
|
var _header2 = _interopRequireDefault(_header);
|
|
38
38
|
|
|
39
|
+
var _classnames = require('classnames');
|
|
40
|
+
|
|
41
|
+
var _classnames2 = _interopRequireDefault(_classnames);
|
|
42
|
+
|
|
39
43
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
40
44
|
|
|
41
45
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -374,6 +378,7 @@ var Chrome = function (_React$Component2) {
|
|
|
374
378
|
title = _props5.title,
|
|
375
379
|
classNames = _props5.classNames,
|
|
376
380
|
scrollGlobalMessagesIntoView = _props5.scrollGlobalMessagesIntoView;
|
|
381
|
+
var model = contentProps.model;
|
|
377
382
|
var _state = this.state,
|
|
378
383
|
delayingShowSubmitButton = _state.delayingShowSubmitButton,
|
|
379
384
|
moving = _state.moving,
|
|
@@ -418,17 +423,23 @@ var Chrome = function (_React$Component2) {
|
|
|
418
423
|
}) : null;
|
|
419
424
|
|
|
420
425
|
var Content = contentComponent;
|
|
421
|
-
|
|
422
|
-
var className = 'auth0-lock-cred-pane';
|
|
423
426
|
var isQuiet = !moving && !delayingShowSubmitButton;
|
|
424
|
-
|
|
427
|
+
|
|
428
|
+
var className = (0, _classnames2.default)('auth0-lock-cred-pane', {
|
|
429
|
+
'auth0-lock-quiet': isQuiet,
|
|
430
|
+
'auth0-lock-moving': !isQuiet
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
var internalWrapperClass = (0, _classnames2.default)('auth0-lock-cred-pane-internal-wrapper', {
|
|
434
|
+
'auto-height': l.ui.forceAutoHeight(model)
|
|
435
|
+
});
|
|
425
436
|
|
|
426
437
|
return _react2.default.createElement(
|
|
427
438
|
'div',
|
|
428
439
|
{ className: className },
|
|
429
440
|
_react2.default.createElement(
|
|
430
441
|
'div',
|
|
431
|
-
{ className:
|
|
442
|
+
{ className: internalWrapperClass },
|
|
432
443
|
_react2.default.createElement(
|
|
433
444
|
'div',
|
|
434
445
|
{ className: 'auth0-lock-content-wrapper' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-lock",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.31.0",
|
|
4
4
|
"description": "Auth0 Lock",
|
|
5
5
|
"author": "Auth0 <support@auth0.com> (http://auth0.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dev": "grunt dev",
|
|
26
26
|
"dist": "grunt dist",
|
|
27
27
|
"prepublish": "cross-env BABEL_ENV=npm grunt dist",
|
|
28
|
-
"precommit": "yarn
|
|
28
|
+
"precommit": "yarn lint-staged",
|
|
29
29
|
"lint": "eslint --ext .jsx,.js src/",
|
|
30
30
|
"test:e2e": "cross-env BABEL_ENV=test karma start --browsers ChromeHeadless",
|
|
31
31
|
"test:e2e:watch": "cross-env BABEL_ENV=test karma start --browsers Chrome --single-run=false",
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"auth0-js": "^9.16.4",
|
|
109
109
|
"auth0-password-policies": "^1.0.2",
|
|
110
110
|
"blueimp-md5": "^2.18.0",
|
|
111
|
+
"classnames": "^2.3.1",
|
|
111
112
|
"dompurify": "^2.2.8",
|
|
112
113
|
"immutable": "^3.7.3",
|
|
113
114
|
"jsonp": "^0.2.1",
|