auth0-lock 12.4.0 → 12.5.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/.github/workflows/test.yml +1 -1
- package/.version +1 -1
- package/CHANGELOG.md +5 -0
- package/Makefile +1 -1
- package/README.md +1 -1
- package/lib/__tests__/connection/database/actions.js +1 -1
- package/lib/__tests__/connection/database/index.js +1 -1
- package/lib/__tests__/connection/database/login_pane.js +1 -1
- package/lib/__tests__/connection/database/password_reset_confirmation.js +1 -1
- package/lib/__tests__/connection/database/signed_up_confirmation.js +1 -1
- package/lib/__tests__/connection/enterprise/actions.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_pane.js +1 -1
- package/lib/__tests__/connection/enterprise/hrd_screen.js +1 -1
- package/lib/__tests__/connection/enterprise/quick_auth_screen.js +1 -1
- package/lib/__tests__/connection/passwordless/ask_vcode.js +1 -1
- package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +1 -1
- package/lib/__tests__/core/actions.js +2 -2
- package/lib/__tests__/core/remote_data.js +1 -1
- package/lib/__tests__/core/signed_in_confirmation.js +1 -1
- 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 +1 -1
- package/lib/__tests__/engine/classic.js +1 -1
- package/lib/__tests__/field/captcha/third_party_captcha.js +1 -1
- package/lib/__tests__/field/field.js +1 -1
- package/lib/__tests__/i18n.js +1 -1
- package/lib/__tests__/testUtils.js +2 -2
- package/lib/__tests__/ui/box/chrome.js +1 -1
- package/lib/__tests__/ui/box/confirmation_pane.js +1 -1
- package/lib/avatar.js +1 -1
- package/lib/connection/captcha.js +54 -20
- package/lib/connection/database/actions.js +19 -8
- package/lib/connection/database/index.js +1 -1
- package/lib/connection/database/login_pane.js +11 -13
- package/lib/connection/database/login_sign_up_tabs.js +13 -17
- package/lib/connection/database/mfa_pane.js +8 -10
- package/lib/connection/database/password_reset_confirmation.js +9 -11
- package/lib/connection/database/reset_password.js +12 -16
- package/lib/connection/database/reset_password_pane.js +20 -12
- package/lib/connection/database/signed_up_confirmation.js +9 -11
- package/lib/connection/enterprise/actions.js +4 -4
- package/lib/connection/enterprise/hrd_pane.js +10 -12
- package/lib/connection/enterprise/hrd_screen.js +9 -11
- package/lib/connection/enterprise/kerberos_screen.js +9 -11
- package/lib/connection/enterprise/quick_auth_screen.js +9 -11
- package/lib/connection/enterprise.js +1 -1
- package/lib/connection/passwordless/actions.js +7 -7
- package/lib/connection/passwordless/ask_vcode.js +8 -10
- package/lib/connection/passwordless/email_sent_confirmation.js +16 -22
- package/lib/connection/passwordless/index.js +1 -1
- package/lib/connection/social/index.js +1 -1
- package/lib/core/actions.js +2 -2
- package/lib/core/client/index.js +2 -2
- package/lib/core/client/settings.js +1 -1
- package/lib/core/error_screen.js +9 -11
- package/lib/core/index.js +13 -4
- package/lib/core/loading_screen.js +12 -16
- package/lib/core/remote_data.js +9 -1
- package/lib/core/screen.js +3 -4
- package/lib/core/signed_in_confirmation.js +9 -11
- package/lib/core/sso/last_login_screen.js +9 -11
- package/lib/core/tenant/index.js +2 -2
- package/lib/core/tenant/settings.js +1 -1
- package/lib/core/web_api/helper.js +3 -3
- package/lib/core/web_api/p2_api.js +8 -3
- package/lib/core/web_api.js +7 -3
- package/lib/core.js +12 -14
- package/lib/engine/classic/login.js +9 -11
- package/lib/engine/classic/mfa_login_screen.js +9 -11
- package/lib/engine/classic/sign_up_pane.js +10 -12
- package/lib/engine/classic/sign_up_screen.js +9 -11
- package/lib/engine/classic.js +3 -4
- package/lib/engine/passwordless/social_or_email_login_screen.js +11 -13
- package/lib/engine/passwordless/social_or_phone_number_login_screen.js +11 -13
- package/lib/engine/passwordless.js +3 -4
- package/lib/field/captcha/captcha_pane.js +16 -15
- package/lib/field/captcha/third_party_captcha.js +8 -10
- package/lib/field/custom_input.js +1 -1
- package/lib/field/email/email_pane.js +9 -11
- package/lib/field/email.js +1 -1
- package/lib/field/index.js +1 -1
- package/lib/field/mfa-code/mfa_code_pane.js +9 -11
- package/lib/field/password/password_pane.js +11 -13
- package/lib/field/phone-number/phone_number_pane.js +10 -12
- package/lib/field/social/event.js +1 -1
- package/lib/field/social/social_buttons_pane.js +9 -11
- package/lib/field/username/username_pane.js +9 -11
- package/lib/field/vcode/vcode_pane.js +11 -13
- package/lib/i18n/af.js +3 -1
- package/lib/i18n/ar.js +3 -1
- package/lib/i18n/az.js +3 -1
- package/lib/i18n/bg.js +3 -1
- package/lib/i18n/ca.js +3 -1
- package/lib/i18n/cs.js +3 -1
- package/lib/i18n/da.js +3 -1
- package/lib/i18n/de.js +3 -1
- package/lib/i18n/el.js +3 -1
- package/lib/i18n/en.js +3 -1
- package/lib/i18n/es.js +3 -1
- package/lib/i18n/et.js +3 -1
- package/lib/i18n/fa.js +3 -1
- package/lib/i18n/fi.js +3 -1
- package/lib/i18n/fr.js +3 -1
- package/lib/i18n/he.js +3 -1
- package/lib/i18n/hr.js +3 -1
- package/lib/i18n/hu.js +3 -1
- package/lib/i18n/id.js +3 -1
- package/lib/i18n/it.js +3 -1
- package/lib/i18n/ja.js +3 -1
- package/lib/i18n/ko.js +3 -1
- package/lib/i18n/lt.js +3 -1
- package/lib/i18n/lv.js +3 -1
- package/lib/i18n/ms.js +3 -1
- package/lib/i18n/nb.js +3 -1
- package/lib/i18n/nl.js +3 -1
- package/lib/i18n/nn.js +3 -1
- package/lib/i18n/no.js +3 -1
- package/lib/i18n/pl.js +3 -1
- package/lib/i18n/pt-br.js +3 -1
- package/lib/i18n/pt.js +3 -1
- package/lib/i18n/ro.js +3 -1
- package/lib/i18n/ru.js +3 -1
- package/lib/i18n/sk.js +3 -1
- package/lib/i18n/sl.js +3 -1
- package/lib/i18n/sr.js +3 -1
- package/lib/i18n/sv.js +3 -1
- package/lib/i18n/tr.js +3 -1
- package/lib/i18n/ua.js +3 -1
- package/lib/i18n/uk.js +3 -1
- package/lib/i18n/vi.js +3 -1
- package/lib/i18n/zh-tw.js +3 -1
- package/lib/i18n/zh.js +3 -1
- package/lib/i18n.js +2 -2
- package/lib/lock.js +9 -10
- package/lib/passwordless.js +9 -10
- package/lib/quick-auth/actions.js +2 -2
- package/lib/sync.js +1 -1
- package/lib/ui/box/chrome.js +12 -16
- package/lib/ui/box/confirmation_pane.js +1 -1
- package/lib/ui/box/container.js +10 -13
- package/lib/ui/box/global_message.js +8 -10
- package/lib/ui/box/header.js +18 -26
- package/lib/ui/box/multisize_slide.js +12 -16
- package/lib/ui/box.js +3 -5
- package/lib/ui/input/captcha_input.js +13 -15
- package/lib/ui/input/checkbox_input.js +8 -10
- package/lib/ui/input/email_input.js +9 -11
- package/lib/ui/input/input_wrap.js +8 -10
- package/lib/ui/input/location_input.js +8 -10
- package/lib/ui/input/mfa_code_input.js +9 -11
- package/lib/ui/input/password/password_strength.js +14 -20
- package/lib/ui/input/password_input.js +10 -12
- package/lib/ui/input/phone_number_input.js +9 -11
- package/lib/ui/input/select_input.js +8 -10
- package/lib/ui/input/text_input.js +9 -11
- package/lib/ui/input/username_input.js +9 -11
- package/lib/ui/input/vcode_input.js +9 -11
- package/lib/ui/list.js +15 -21
- package/lib/utils/atom.js +2 -3
- package/lib/utils/cache.js +2 -3
- package/lib/utils/jsonp_utils.js +2 -3
- package/package.json +2 -2
package/lib/passwordless.js
CHANGED
|
@@ -9,26 +9,24 @@ var _core = _interopRequireWildcard(require("./core"));
|
|
|
9
9
|
var _passwordless = _interopRequireDefault(require("./engine/passwordless"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
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); } }
|
|
14
14
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
17
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
-
function
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
21
19
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
20
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
function _isNativeReflectConstruct() {
|
|
21
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
22
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
25
|
var Auth0LockPasswordless = exports.default = /*#__PURE__*/function (_Core) {
|
|
26
|
-
_inherits(Auth0LockPasswordless, _Core);
|
|
27
|
-
var _super = _createSuper(Auth0LockPasswordless);
|
|
28
26
|
function Auth0LockPasswordless(clientID, domain, options) {
|
|
29
27
|
var _this;
|
|
30
28
|
_classCallCheck(this, Auth0LockPasswordless);
|
|
31
|
-
_this =
|
|
29
|
+
_this = _callSuper(this, Auth0LockPasswordless, [clientID, domain, options, _passwordless.default]);
|
|
32
30
|
(0, _core.injectStyles)();
|
|
33
31
|
(0, _core.setWindowHeightStyle)();
|
|
34
32
|
window.addEventListener('resize', function () {
|
|
@@ -36,6 +34,7 @@ var Auth0LockPasswordless = exports.default = /*#__PURE__*/function (_Core) {
|
|
|
36
34
|
});
|
|
37
35
|
return _this;
|
|
38
36
|
}
|
|
37
|
+
_inherits(Auth0LockPasswordless, _Core);
|
|
39
38
|
return _createClass(Auth0LockPasswordless);
|
|
40
39
|
}(_core.default);
|
|
41
|
-
Auth0LockPasswordless.version = "12.
|
|
40
|
+
Auth0LockPasswordless.version = "12.5.0";
|
|
@@ -11,12 +11,12 @@ var _index = require("../store/index");
|
|
|
11
11
|
var _actions = require("../core/actions");
|
|
12
12
|
var l = _interopRequireWildcard(require("../core/index"));
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
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); }
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
20
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
21
|
function skipQuickAuth(id) {
|
|
22
22
|
(0, _index.swap)(_index.updateEntity, 'lock', id, _quick_auth.skipQuickAuth, true);
|
package/lib/sync.js
CHANGED
|
@@ -13,7 +13,7 @@ var _data_utils = require("./utils/data_utils");
|
|
|
13
13
|
var l = _interopRequireWildcard(require("./core/index"));
|
|
14
14
|
var _index2 = require("./store/index");
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
var _dataFns = (0, _data_utils.dataFns)(['sync']),
|
|
18
18
|
get = _dataFns.get,
|
|
19
19
|
set = _dataFns.set;
|
package/lib/ui/box/chrome.js
CHANGED
|
@@ -16,21 +16,21 @@ var l = _interopRequireWildcard(require("../../core/index"));
|
|
|
16
16
|
var _header = _interopRequireDefault(require("./header"));
|
|
17
17
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
23
|
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); } }
|
|
24
24
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
26
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
27
|
-
function
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
27
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
30
28
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
31
29
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
32
|
-
function _isNativeReflectConstruct() {
|
|
30
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33
31
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
34
34
|
var SubmitSvg = function SubmitSvg() {
|
|
35
35
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
36
36
|
"aria-hidden": "true",
|
|
@@ -102,13 +102,12 @@ var SubmitTextSvg = function SubmitTextSvg() {
|
|
|
102
102
|
}))));
|
|
103
103
|
};
|
|
104
104
|
var SubmitButton = /*#__PURE__*/function (_React$Component) {
|
|
105
|
-
_inherits(SubmitButton, _React$Component);
|
|
106
|
-
var _super = _createSuper(SubmitButton);
|
|
107
105
|
function SubmitButton() {
|
|
108
106
|
_classCallCheck(this, SubmitButton);
|
|
109
|
-
return
|
|
107
|
+
return _callSuper(this, SubmitButton, arguments);
|
|
110
108
|
}
|
|
111
|
-
|
|
109
|
+
_inherits(SubmitButton, _React$Component);
|
|
110
|
+
return _createClass(SubmitButton, [{
|
|
112
111
|
key: "handleSubmit",
|
|
113
112
|
value: function handleSubmit() {
|
|
114
113
|
var _this$props = this.props,
|
|
@@ -168,7 +167,6 @@ var SubmitButton = /*#__PURE__*/function (_React$Component) {
|
|
|
168
167
|
})), content);
|
|
169
168
|
}
|
|
170
169
|
}]);
|
|
171
|
-
return SubmitButton;
|
|
172
170
|
}(_react.default.Component);
|
|
173
171
|
SubmitButton.propTypes = {
|
|
174
172
|
color: _propTypes.default.string.isRequired,
|
|
@@ -182,12 +180,10 @@ SubmitButton.propTypes = {
|
|
|
182
180
|
var MESSAGE_ANIMATION_DURATION = 250;
|
|
183
181
|
var AUXILIARY_ANIMATION_DURATION = 350;
|
|
184
182
|
var Chrome = exports.default = /*#__PURE__*/function (_React$Component2) {
|
|
185
|
-
_inherits(Chrome, _React$Component2);
|
|
186
|
-
var _super2 = _createSuper(Chrome);
|
|
187
183
|
function Chrome(props) {
|
|
188
184
|
var _this;
|
|
189
185
|
_classCallCheck(this, Chrome);
|
|
190
|
-
_this =
|
|
186
|
+
_this = _callSuper(this, Chrome, [props]);
|
|
191
187
|
_this.state = {
|
|
192
188
|
moving: false,
|
|
193
189
|
reverse: false,
|
|
@@ -197,7 +193,8 @@ var Chrome = exports.default = /*#__PURE__*/function (_React$Component2) {
|
|
|
197
193
|
}
|
|
198
194
|
|
|
199
195
|
// eslint-disable-next-line react/no-deprecated
|
|
200
|
-
|
|
196
|
+
_inherits(Chrome, _React$Component2);
|
|
197
|
+
return _createClass(Chrome, [{
|
|
201
198
|
key: "UNSAFE_componentWillReceiveProps",
|
|
202
199
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
203
200
|
var _this2 = this;
|
|
@@ -478,7 +475,6 @@ var Chrome = exports.default = /*#__PURE__*/function (_React$Component2) {
|
|
|
478
475
|
backHandler();
|
|
479
476
|
}
|
|
480
477
|
}]);
|
|
481
|
-
return Chrome;
|
|
482
478
|
}(_react.default.Component);
|
|
483
479
|
Chrome.propTypes = {
|
|
484
480
|
autofocus: _propTypes.default.bool.isRequired,
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _button = require("./button");
|
|
11
11
|
var l = _interopRequireWildcard(require("../../core/index"));
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
var ConfirmationPane = function ConfirmationPane(_ref) {
|
|
16
16
|
var lock = _ref.lock,
|
package/lib/ui/box/container.js
CHANGED
|
@@ -12,20 +12,20 @@ var l = _interopRequireWildcard(require("../../core/index"));
|
|
|
12
12
|
var c = _interopRequireWildcard(require("../../field/index"));
|
|
13
13
|
var _index3 = require("../../store/index");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
function
|
|
18
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
19
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
17
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
20
18
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
21
19
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
|
-
function _isNativeReflectConstruct() {
|
|
20
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
21
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
22
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
24
|
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); }
|
|
25
25
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
26
|
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); } }
|
|
27
27
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
28
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
28
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
29
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
30
30
|
var badgeSvg = /*#__PURE__*/_react.default.createElement("svg", {
|
|
31
31
|
focusable: "false",
|
|
@@ -88,28 +88,26 @@ var EscKeyDownHandler = /*#__PURE__*/function () {
|
|
|
88
88
|
};
|
|
89
89
|
window.document.addEventListener('keydown', this.handler, false);
|
|
90
90
|
}
|
|
91
|
-
_createClass(EscKeyDownHandler, [{
|
|
91
|
+
return _createClass(EscKeyDownHandler, [{
|
|
92
92
|
key: "release",
|
|
93
93
|
value: function release() {
|
|
94
94
|
window.document.removeEventListener('keydown', this.handler);
|
|
95
95
|
}
|
|
96
96
|
}]);
|
|
97
|
-
return EscKeyDownHandler;
|
|
98
97
|
}();
|
|
99
98
|
var IPHONE = typeof window !== 'undefined' && window.navigator && !!window.navigator.userAgent.match(/iPhone/i);
|
|
100
99
|
var Container = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
101
|
-
_inherits(Container, _React$Component);
|
|
102
|
-
var _super = _createSuper(Container);
|
|
103
100
|
function Container(props) {
|
|
104
101
|
var _this;
|
|
105
102
|
_classCallCheck(this, Container);
|
|
106
|
-
_this =
|
|
103
|
+
_this = _callSuper(this, Container, [props]);
|
|
107
104
|
_this.state = {
|
|
108
105
|
isOpen: false
|
|
109
106
|
};
|
|
110
107
|
return _this;
|
|
111
108
|
}
|
|
112
|
-
|
|
109
|
+
_inherits(Container, _React$Component);
|
|
110
|
+
return _createClass(Container, [{
|
|
113
111
|
key: "checkConnectionResolver",
|
|
114
112
|
value: function checkConnectionResolver(done) {
|
|
115
113
|
var contentProps = this.props.contentProps;
|
|
@@ -313,7 +311,6 @@ var Container = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
313
311
|
})))));
|
|
314
312
|
}
|
|
315
313
|
}]);
|
|
316
|
-
return Container;
|
|
317
314
|
}(_react.default.Component);
|
|
318
315
|
Container.propTypes = {
|
|
319
316
|
autofocus: _propTypes.default.bool.isRequired,
|
|
@@ -11,23 +11,22 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
12
|
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); } }
|
|
13
13
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
-
function
|
|
17
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
16
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
19
17
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
20
18
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
21
|
-
function _isNativeReflectConstruct() {
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
20
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
21
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
23
|
var GlobalMessage = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
24
|
-
_inherits(GlobalMessage, _React$Component);
|
|
25
|
-
var _super = _createSuper(GlobalMessage);
|
|
26
24
|
function GlobalMessage() {
|
|
27
25
|
_classCallCheck(this, GlobalMessage);
|
|
28
|
-
return
|
|
26
|
+
return _callSuper(this, GlobalMessage, arguments);
|
|
29
27
|
}
|
|
30
|
-
|
|
28
|
+
_inherits(GlobalMessage, _React$Component);
|
|
29
|
+
return _createClass(GlobalMessage, [{
|
|
31
30
|
key: "componentDidMount",
|
|
32
31
|
value: function componentDidMount() {
|
|
33
32
|
var methodIsSupported = this.messageNode && typeof this.messageNode.scrollIntoView === 'function';
|
|
@@ -56,7 +55,6 @@ var GlobalMessage = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
56
55
|
}, message));
|
|
57
56
|
}
|
|
58
57
|
}]);
|
|
59
|
-
return GlobalMessage;
|
|
60
58
|
}(_react.default.Component);
|
|
61
59
|
GlobalMessage.propTypes = {
|
|
62
60
|
message: _propTypes.default.node.isRequired,
|
package/lib/ui/box/header.js
CHANGED
|
@@ -14,23 +14,22 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
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); } }
|
|
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
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
-
function
|
|
20
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
19
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
20
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
23
21
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
26
|
var Header = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
27
|
-
_inherits(Header, _React$Component);
|
|
28
|
-
var _super = _createSuper(Header);
|
|
29
27
|
function Header() {
|
|
30
28
|
_classCallCheck(this, Header);
|
|
31
|
-
return
|
|
29
|
+
return _callSuper(this, Header, arguments);
|
|
32
30
|
}
|
|
33
|
-
|
|
31
|
+
_inherits(Header, _React$Component);
|
|
32
|
+
return _createClass(Header, [{
|
|
34
33
|
key: "getDOMNode",
|
|
35
34
|
value: function getDOMNode() {
|
|
36
35
|
return _reactDom.default.findDOMNode(this);
|
|
@@ -60,7 +59,6 @@ var Header = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
60
59
|
}));
|
|
61
60
|
}
|
|
62
61
|
}]);
|
|
63
|
-
return Header;
|
|
64
62
|
}(_react.default.Component);
|
|
65
63
|
Header.propTypes = {
|
|
66
64
|
backgroundUrl: _propTypes.default.string,
|
|
@@ -68,24 +66,23 @@ Header.propTypes = {
|
|
|
68
66
|
name: _propTypes.default.string
|
|
69
67
|
};
|
|
70
68
|
var Welcome = /*#__PURE__*/function (_React$Component2) {
|
|
71
|
-
_inherits(Welcome, _React$Component2);
|
|
72
|
-
var _super2 = _createSuper(Welcome);
|
|
73
69
|
function Welcome() {
|
|
74
70
|
var _this;
|
|
75
71
|
_classCallCheck(this, Welcome);
|
|
76
72
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
77
73
|
args[_key] = arguments[_key];
|
|
78
74
|
}
|
|
79
|
-
_this =
|
|
75
|
+
_this = _callSuper(this, Welcome, [].concat(args));
|
|
80
76
|
// Cause a reflow when the image is loaded to fix an issue with the Lock content sometimes
|
|
81
77
|
// not rendering in a popup on first load.
|
|
82
78
|
// https://github.com/auth0/lock/issues/1942
|
|
83
|
-
_defineProperty(
|
|
79
|
+
_defineProperty(_this, "onImageLoad", function () {
|
|
84
80
|
return document.querySelector('.auth0-lock').style.fontSize = '1rem';
|
|
85
81
|
});
|
|
86
82
|
return _this;
|
|
87
83
|
}
|
|
88
|
-
|
|
84
|
+
_inherits(Welcome, _React$Component2);
|
|
85
|
+
return _createClass(Welcome, [{
|
|
89
86
|
key: "render",
|
|
90
87
|
value: function render() {
|
|
91
88
|
var _this$props2 = this.props,
|
|
@@ -108,20 +105,18 @@ var Welcome = /*#__PURE__*/function (_React$Component2) {
|
|
|
108
105
|
}, imageUrl && img, welcome);
|
|
109
106
|
}
|
|
110
107
|
}]);
|
|
111
|
-
return Welcome;
|
|
112
108
|
}(_react.default.Component);
|
|
113
109
|
Welcome.propTypes = {
|
|
114
110
|
imageUrl: _propTypes.default.string,
|
|
115
111
|
name: _propTypes.default.string
|
|
116
112
|
};
|
|
117
113
|
var WelcomeMessage = /*#__PURE__*/function (_React$Component3) {
|
|
118
|
-
_inherits(WelcomeMessage, _React$Component3);
|
|
119
|
-
var _super3 = _createSuper(WelcomeMessage);
|
|
120
114
|
function WelcomeMessage() {
|
|
121
115
|
_classCallCheck(this, WelcomeMessage);
|
|
122
|
-
return
|
|
116
|
+
return _callSuper(this, WelcomeMessage, arguments);
|
|
123
117
|
}
|
|
124
|
-
|
|
118
|
+
_inherits(WelcomeMessage, _React$Component3);
|
|
119
|
+
return _createClass(WelcomeMessage, [{
|
|
125
120
|
key: "render",
|
|
126
121
|
value: function render() {
|
|
127
122
|
var _this$props3 = this.props,
|
|
@@ -143,7 +138,6 @@ var WelcomeMessage = /*#__PURE__*/function (_React$Component3) {
|
|
|
143
138
|
}, message);
|
|
144
139
|
}
|
|
145
140
|
}]);
|
|
146
|
-
return WelcomeMessage;
|
|
147
141
|
}(_react.default.Component);
|
|
148
142
|
WelcomeMessage.propTypes = {
|
|
149
143
|
name: _propTypes.default.string
|
|
@@ -161,13 +155,12 @@ var cssBlurSupport = function () {
|
|
|
161
155
|
return !!el.style.length && (window.document.documentMode === undefined || window.document.documentMode > 9);
|
|
162
156
|
}();
|
|
163
157
|
var Background = /*#__PURE__*/function (_React$Component4) {
|
|
164
|
-
_inherits(Background, _React$Component4);
|
|
165
|
-
var _super4 = _createSuper(Background);
|
|
166
158
|
function Background() {
|
|
167
159
|
_classCallCheck(this, Background);
|
|
168
|
-
return
|
|
160
|
+
return _callSuper(this, Background, arguments);
|
|
169
161
|
}
|
|
170
|
-
|
|
162
|
+
_inherits(Background, _React$Component4);
|
|
163
|
+
return _createClass(Background, [{
|
|
171
164
|
key: "render",
|
|
172
165
|
value: function render() {
|
|
173
166
|
var _this$props4 = this.props,
|
|
@@ -198,7 +191,6 @@ var Background = /*#__PURE__*/function (_React$Component4) {
|
|
|
198
191
|
return /*#__PURE__*/_react.default.createElement("div", props, /*#__PURE__*/_react.default.createElement("div", blurProps), /*#__PURE__*/_react.default.createElement("div", solidProps));
|
|
199
192
|
}
|
|
200
193
|
}]);
|
|
201
|
-
return Background;
|
|
202
194
|
}(_react.default.Component);
|
|
203
195
|
Background.propTypes = {
|
|
204
196
|
backgorundColor: _propTypes.default.string,
|
|
@@ -14,22 +14,20 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
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); } }
|
|
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
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
-
function
|
|
20
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
19
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
20
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
23
21
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24
|
-
function _isNativeReflectConstruct() {
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
26
26
|
var Slider = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
27
|
-
_inherits(Slider, _React$Component);
|
|
28
|
-
var _super = _createSuper(Slider);
|
|
29
27
|
function Slider(props) {
|
|
30
28
|
var _this;
|
|
31
29
|
_classCallCheck(this, Slider);
|
|
32
|
-
_this =
|
|
30
|
+
_this = _callSuper(this, Slider, [props]);
|
|
33
31
|
_this.state = {
|
|
34
32
|
children: {
|
|
35
33
|
current: props.children
|
|
@@ -39,7 +37,8 @@ var Slider = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
// eslint-disable-next-line react/no-deprecated
|
|
42
|
-
|
|
40
|
+
_inherits(Slider, _React$Component);
|
|
41
|
+
return _createClass(Slider, [{
|
|
43
42
|
key: "UNSAFE_componentWillReceiveProps",
|
|
44
43
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
45
44
|
// TODO: take a prop to identify what are we rendering instead of
|
|
@@ -134,7 +133,6 @@ var Slider = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
134
133
|
return /*#__PURE__*/_react.default.createElement(this.props.component, {}, childrenToRender);
|
|
135
134
|
}
|
|
136
135
|
}]);
|
|
137
|
-
return Slider;
|
|
138
136
|
}(_react.default.Component);
|
|
139
137
|
Slider.propTypes = {
|
|
140
138
|
children: _propTypes.default.node.isRequired,
|
|
@@ -154,13 +152,11 @@ Slider.defaultProps = {
|
|
|
154
152
|
reverse: false
|
|
155
153
|
};
|
|
156
154
|
var Child = /*#__PURE__*/function (_React$Component2) {
|
|
157
|
-
_inherits(Child, _React$Component2);
|
|
158
|
-
var _super2 = _createSuper(Child);
|
|
159
155
|
function Child(props) {
|
|
160
156
|
var _this3;
|
|
161
157
|
_classCallCheck(this, Child);
|
|
162
|
-
_this3 =
|
|
163
|
-
_defineProperty(
|
|
158
|
+
_this3 = _callSuper(this, Child, [props]);
|
|
159
|
+
_defineProperty(_this3, "node", void 0);
|
|
164
160
|
_this3.state = {
|
|
165
161
|
height: '',
|
|
166
162
|
originalHeight: '',
|
|
@@ -168,7 +164,8 @@ var Child = /*#__PURE__*/function (_React$Component2) {
|
|
|
168
164
|
};
|
|
169
165
|
return _this3;
|
|
170
166
|
}
|
|
171
|
-
|
|
167
|
+
_inherits(Child, _React$Component2);
|
|
168
|
+
return _createClass(Child, [{
|
|
172
169
|
key: "componentWillSlideIn",
|
|
173
170
|
value: function componentWillSlideIn(slide) {
|
|
174
171
|
this.setState({
|
|
@@ -260,7 +257,6 @@ var Child = /*#__PURE__*/function (_React$Component2) {
|
|
|
260
257
|
}, children));
|
|
261
258
|
}
|
|
262
259
|
}]);
|
|
263
|
-
return Child;
|
|
264
260
|
}(_react.default.Component);
|
|
265
261
|
Child.propTypes = {
|
|
266
262
|
children: _propTypes.default.node.isRequired
|
package/lib/ui/box.js
CHANGED
|
@@ -14,13 +14,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
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); } }
|
|
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
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
var ContainerManager = /*#__PURE__*/function () {
|
|
20
20
|
function ContainerManager() {
|
|
21
21
|
_classCallCheck(this, ContainerManager);
|
|
22
22
|
}
|
|
23
|
-
_createClass(ContainerManager, [{
|
|
23
|
+
return _createClass(ContainerManager, [{
|
|
24
24
|
key: "ensure",
|
|
25
25
|
value: function ensure(id, shouldAppend) {
|
|
26
26
|
var container = window.document.getElementById(id);
|
|
@@ -36,7 +36,6 @@ var ContainerManager = /*#__PURE__*/function () {
|
|
|
36
36
|
return container;
|
|
37
37
|
}
|
|
38
38
|
}]);
|
|
39
|
-
return ContainerManager;
|
|
40
39
|
}();
|
|
41
40
|
var Renderer = /*#__PURE__*/function () {
|
|
42
41
|
function Renderer() {
|
|
@@ -44,7 +43,7 @@ var Renderer = /*#__PURE__*/function () {
|
|
|
44
43
|
this.containerManager = new ContainerManager();
|
|
45
44
|
this.modals = {};
|
|
46
45
|
}
|
|
47
|
-
_createClass(Renderer, [{
|
|
46
|
+
return _createClass(Renderer, [{
|
|
48
47
|
key: "render",
|
|
49
48
|
value: function render(containerId, props) {
|
|
50
49
|
var _this = this;
|
|
@@ -99,7 +98,6 @@ var Renderer = /*#__PURE__*/function () {
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
}]);
|
|
102
|
-
return Renderer;
|
|
103
101
|
}();
|
|
104
102
|
var renderer = new Renderer();
|
|
105
103
|
var render = exports.render = function render() {
|