auth0-lock 12.2.0 → 12.3.1
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/.github/dependabot.yml +12 -0
- package/.github/workflows/publish.yml +89 -42
- package/.github/workflows/snyk.yml +1 -1
- package/.github/workflows/test.yml +9 -17
- package/.shiprc +1 -1
- package/CHANGELOG.md +12 -0
- package/DEVELOPMENT.md +8 -8
- package/Makefile +22 -0
- package/README.md +1 -1
- package/lib/__tests__/connection/database/actions.js +3 -3
- package/lib/__tests__/connection/database/index.js +3 -3
- package/lib/__tests__/connection/database/login_pane.js +2 -2
- package/lib/__tests__/connection/database/password_reset_confirmation.js +2 -2
- package/lib/__tests__/connection/database/signed_up_confirmation.js +2 -2
- package/lib/__tests__/connection/enterprise/actions.js +3 -3
- package/lib/__tests__/connection/enterprise/hrd_pane.js +3 -3
- package/lib/__tests__/connection/enterprise/hrd_screen.js +3 -3
- package/lib/__tests__/connection/enterprise/quick_auth_screen.js +2 -2
- package/lib/__tests__/connection/passwordless/ask_vcode.js +3 -3
- package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +2 -2
- package/lib/__tests__/core/actions.js +3 -3
- package/lib/__tests__/core/remote_data.js +4 -4
- package/lib/__tests__/core/signed_in_confirmation.js +2 -2
- package/lib/__tests__/core/sso/last_login_screen.js +1 -1
- package/lib/__tests__/core/tenant.js +1 -1
- package/lib/__tests__/core/web_api.js +3 -3
- package/lib/__tests__/engine/classic.js +3 -3
- package/lib/__tests__/field/captcha/arkose.js +29 -0
- package/lib/__tests__/field/captcha/friendlyCaptcha.js +17 -47
- package/lib/__tests__/field/captcha/hcaptcha.js +17 -47
- package/lib/__tests__/field/captcha/recaptcha_enterprise.js +17 -47
- package/lib/__tests__/field/captcha/recaptchav2.js +17 -47
- package/lib/__tests__/field/captcha.js +30 -1
- package/lib/__tests__/field/field.js +1 -1
- package/lib/__tests__/i18n.js +3 -3
- package/lib/__tests__/testUtils.js +10 -17
- package/lib/__tests__/ui/box/chrome.js +3 -3
- package/lib/__tests__/ui/box/confirmation_pane.js +2 -2
- package/lib/avatar.js +4 -5
- package/lib/connection/captcha.js +3 -3
- package/lib/connection/database/actions.js +3 -3
- package/lib/connection/database/index.js +3 -3
- package/lib/connection/database/login_pane.js +4 -5
- package/lib/connection/database/login_sign_up_tabs.js +4 -5
- package/lib/connection/database/mfa_pane.js +2 -3
- package/lib/connection/database/password_reset_confirmation.js +4 -5
- package/lib/connection/database/reset_password.js +4 -5
- package/lib/connection/database/reset_password_pane.js +4 -5
- package/lib/connection/database/sign_up_terms.js +1 -2
- package/lib/connection/database/signed_up_confirmation.js +4 -5
- package/lib/connection/enterprise/actions.js +5 -5
- package/lib/connection/enterprise/hrd_pane.js +4 -5
- package/lib/connection/enterprise/hrd_screen.js +4 -5
- package/lib/connection/enterprise/kerberos_screen.js +4 -5
- package/lib/connection/enterprise/quick_auth_screen.js +4 -5
- package/lib/connection/enterprise/single_sign_on_notice.js +1 -2
- package/lib/connection/enterprise.js +6 -6
- package/lib/connection/passwordless/actions.js +5 -5
- package/lib/connection/passwordless/ask_vcode.js +2 -3
- package/lib/connection/passwordless/email_sent_confirmation.js +4 -5
- package/lib/connection/passwordless/index.js +3 -3
- package/lib/connection/social/index.js +4 -5
- package/lib/core/actions.js +5 -5
- package/lib/core/client/index.js +5 -5
- package/lib/core/client/settings.js +3 -3
- package/lib/core/error_screen.js +4 -5
- package/lib/core/index.js +7 -11
- package/lib/core/loading_screen.js +4 -5
- package/lib/core/pane_separator.js +1 -2
- package/lib/core/remote_data.js +3 -3
- package/lib/core/screen.js +4 -5
- package/lib/core/signed_in_confirmation.js +4 -5
- package/lib/core/sso/last_login_screen.js +4 -5
- package/lib/core/tenant/index.js +5 -5
- package/lib/core/tenant/settings.js +3 -3
- package/lib/core/web_api/helper.js +4 -5
- package/lib/core/web_api/p2_api.js +6 -9
- package/lib/core/web_api.js +2 -3
- package/lib/core.js +5 -6
- package/lib/engine/classic/login.js +4 -5
- package/lib/engine/classic/mfa_login_screen.js +4 -5
- package/lib/engine/classic/sign_up_pane.js +4 -5
- package/lib/engine/classic/sign_up_screen.js +4 -5
- package/lib/engine/classic.js +6 -6
- package/lib/engine/passwordless/social_or_email_login_screen.js +4 -5
- package/lib/engine/passwordless/social_or_phone_number_login_screen.js +4 -5
- package/lib/engine/passwordless.js +4 -5
- package/lib/field/captcha/captcha_pane.js +5 -5
- package/lib/field/captcha/third_party_captcha.js +129 -47
- package/lib/field/custom_input.js +4 -5
- package/lib/field/email/email_pane.js +4 -5
- package/lib/field/email.js +3 -3
- package/lib/field/index.js +3 -3
- package/lib/field/mfa-code/mfa_code_pane.js +4 -5
- package/lib/field/option_selection_pane.js +1 -2
- package/lib/field/password/password_pane.js +4 -5
- package/lib/field/phone-number/locations.js +1 -2
- package/lib/field/phone-number/phone_number_pane.js +5 -7
- package/lib/field/social/event.js +3 -3
- package/lib/field/social/social_buttons_pane.js +4 -5
- package/lib/field/username/username_pane.js +4 -5
- package/lib/field/vcode/vcode_pane.js +4 -5
- package/lib/i18n/af.js +1 -2
- package/lib/i18n/ar.js +1 -2
- package/lib/i18n/az.js +1 -2
- package/lib/i18n/bg.js +1 -2
- package/lib/i18n/ca.js +1 -2
- package/lib/i18n/cs.js +1 -2
- package/lib/i18n/da.js +1 -2
- package/lib/i18n/de.js +1 -2
- package/lib/i18n/el.js +1 -2
- package/lib/i18n/en.js +1 -2
- package/lib/i18n/es.js +1 -2
- package/lib/i18n/et.js +1 -2
- package/lib/i18n/fa.js +1 -2
- package/lib/i18n/fi.js +1 -2
- package/lib/i18n/fr.js +1 -2
- package/lib/i18n/he.js +1 -2
- package/lib/i18n/hr.js +1 -2
- package/lib/i18n/hu.js +1 -2
- package/lib/i18n/id.js +1 -2
- package/lib/i18n/it.js +1 -2
- package/lib/i18n/ja.js +1 -2
- package/lib/i18n/ko.js +1 -2
- package/lib/i18n/lt.js +1 -2
- package/lib/i18n/lv.js +1 -2
- package/lib/i18n/ms.js +1 -2
- package/lib/i18n/nb.js +1 -2
- package/lib/i18n/nl.js +1 -2
- package/lib/i18n/nn.js +1 -2
- package/lib/i18n/no.js +1 -2
- package/lib/i18n/pl.js +1 -2
- package/lib/i18n/pt-br.js +1 -2
- package/lib/i18n/pt.js +1 -2
- package/lib/i18n/ro.js +1 -2
- package/lib/i18n/ru.js +1 -2
- package/lib/i18n/sk.js +1 -2
- package/lib/i18n/sl.js +1 -2
- package/lib/i18n/sr.js +1 -2
- package/lib/i18n/sv.js +1 -2
- package/lib/i18n/tr.js +1 -2
- package/lib/i18n/ua.js +1 -2
- package/lib/i18n/uk.js +1 -2
- package/lib/i18n/vi.js +1 -2
- package/lib/i18n/zh-tw.js +1 -2
- package/lib/i18n/zh.js +1 -2
- package/lib/i18n.js +4 -4
- package/lib/index.js +3 -6
- package/lib/lock.js +5 -6
- package/lib/passwordless.js +5 -6
- package/lib/quick-auth/actions.js +5 -5
- package/lib/sync.js +5 -7
- package/lib/ui/box/button.js +2 -4
- package/lib/ui/box/chrome.js +4 -5
- package/lib/ui/box/confirmation_pane.js +4 -5
- package/lib/ui/box/container.js +5 -7
- package/lib/ui/box/global_message.js +2 -3
- package/lib/ui/box/header.js +2 -3
- package/lib/ui/box/multisize_slide.js +2 -3
- package/lib/ui/box/success_pane.js +1 -2
- package/lib/ui/box.js +3 -5
- package/lib/ui/button/auth_button.js +1 -2
- package/lib/ui/input/captcha_input.js +2 -3
- package/lib/ui/input/checkbox_input.js +2 -3
- package/lib/ui/input/email_input.js +2 -3
- package/lib/ui/input/input_wrap.js +2 -3
- package/lib/ui/input/location_input.js +3 -5
- package/lib/ui/input/mfa_code_input.js +2 -3
- package/lib/ui/input/password/password_strength.js +2 -3
- package/lib/ui/input/password_input.js +5 -7
- package/lib/ui/input/phone_number_input.js +2 -3
- package/lib/ui/input/select_input.js +2 -3
- package/lib/ui/input/text_input.js +2 -3
- package/lib/ui/input/username_input.js +2 -3
- package/lib/ui/input/vcode_input.js +2 -3
- package/lib/ui/list.js +4 -5
- package/lib/ui/pane/quick_auth_pane.js +1 -2
- package/lib/utils/atom.js +1 -1
- package/lib/utils/cache.js +2 -3
- package/lib/utils/data_utils.js +1 -1
- package/lib/utils/format.js +1 -1
- package/lib/utils/jsonp_utils.js +2 -3
- package/package.json +3 -3
package/lib/utils/atom.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = atom;
|
|
7
|
-
function _typeof(
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
9
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
10
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
package/lib/utils/cache.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
function _typeof(
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
8
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9
9
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
10
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -16,7 +16,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
16
16
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
17
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
18
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
-
var Cache = /*#__PURE__*/function () {
|
|
19
|
+
var Cache = exports.default = /*#__PURE__*/function () {
|
|
20
20
|
function Cache(fetchFn) {
|
|
21
21
|
_classCallCheck(this, Cache);
|
|
22
22
|
this.cache = {};
|
|
@@ -65,4 +65,3 @@ var Cache = /*#__PURE__*/function () {
|
|
|
65
65
|
}]);
|
|
66
66
|
return Cache;
|
|
67
67
|
}();
|
|
68
|
-
exports.default = Cache;
|
package/lib/utils/data_utils.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.dataFns = dataFns;
|
|
7
7
|
var _immutable = require("immutable");
|
|
8
|
-
function _typeof(
|
|
8
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
9
9
|
function dataFns(baseNSKeyPath) {
|
|
10
10
|
function keyPath(nsKeyPath, keyOrKeyPath) {
|
|
11
11
|
return nsKeyPath.concat(_typeof(keyOrKeyPath) === 'object' ? keyOrKeyPath : [keyOrKeyPath]);
|
package/lib/utils/format.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = format;
|
|
7
|
-
function _typeof(
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
8
|
// Code attribution
|
|
9
9
|
// Inlined and modified from https://github.com/browserify/node-util/blob/e37ce41f4063bcd7bc27e01470d6654053bdcd14/util.js#L33-L69
|
|
10
10
|
// Copyright Joyent, Inc. and other Node contributors.
|
package/lib/utils/jsonp_utils.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _jsonp = _interopRequireDefault(require("jsonp"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
function _typeof(
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -24,5 +24,4 @@ var JSONPUtils = /*#__PURE__*/function () {
|
|
|
24
24
|
}]);
|
|
25
25
|
return JSONPUtils;
|
|
26
26
|
}();
|
|
27
|
-
var _default = new JSONPUtils();
|
|
28
|
-
exports.default = _default;
|
|
27
|
+
var _default = exports.default = new JSONPUtils();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth0-lock",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.1",
|
|
4
4
|
"description": "Auth0 Lock",
|
|
5
5
|
"author": "Auth0 <support@auth0.com> (http://auth0.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"puppeteer": "^10.1.0",
|
|
111
111
|
"react-test-renderer": "^18.2.0",
|
|
112
112
|
"sinon": "^1.15.4",
|
|
113
|
-
"stylus": "^0.
|
|
113
|
+
"stylus": "^0.61.0",
|
|
114
114
|
"stylus-loader": "^3.0.2",
|
|
115
115
|
"tmp": "^0.2.1",
|
|
116
116
|
"unminified-webpack-plugin": "^3.0.0",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"webpack-dev-server": "^4.11.1"
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
|
-
"auth0-js": "^9.
|
|
123
|
+
"auth0-js": "^9.23.3",
|
|
124
124
|
"auth0-password-policies": "^1.0.2",
|
|
125
125
|
"blueimp-md5": "^2.19.0",
|
|
126
126
|
"classnames": "^2.3.2",
|