auth0-lock 12.4.0 → 12.5.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.
Files changed (162) hide show
  1. package/.github/workflows/test.yml +1 -1
  2. package/.version +1 -1
  3. package/CHANGELOG.md +30 -0
  4. package/Makefile +1 -1
  5. package/README.md +2 -1
  6. package/lib/__tests__/connection/database/actions.js +103 -2
  7. package/lib/__tests__/connection/database/index.js +1 -1
  8. package/lib/__tests__/connection/database/login_pane.js +1 -1
  9. package/lib/__tests__/connection/database/password_reset_confirmation.js +1 -1
  10. package/lib/__tests__/connection/database/signed_up_confirmation.js +1 -1
  11. package/lib/__tests__/connection/enterprise/actions.js +1 -1
  12. package/lib/__tests__/connection/enterprise/hrd_pane.js +1 -1
  13. package/lib/__tests__/connection/enterprise/hrd_screen.js +1 -1
  14. package/lib/__tests__/connection/enterprise/quick_auth_screen.js +1 -1
  15. package/lib/__tests__/connection/passwordless/ask_vcode.js +1 -1
  16. package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +1 -1
  17. package/lib/__tests__/core/actions.js +2 -2
  18. package/lib/__tests__/core/remote_data.js +1 -1
  19. package/lib/__tests__/core/signed_in_confirmation.js +1 -1
  20. package/lib/__tests__/core/sso/last_login_screen.js +1 -1
  21. package/lib/__tests__/core/tenant.js +1 -1
  22. package/lib/__tests__/core/web_api.js +1 -1
  23. package/lib/__tests__/engine/classic.js +1 -1
  24. package/lib/__tests__/field/captcha/third_party_captcha.js +1 -1
  25. package/lib/__tests__/field/field.js +1 -1
  26. package/lib/__tests__/i18n.js +1 -1
  27. package/lib/__tests__/testUtils.js +2 -2
  28. package/lib/__tests__/ui/box/chrome.js +1 -1
  29. package/lib/__tests__/ui/box/confirmation_pane.js +1 -1
  30. package/lib/avatar.js +1 -1
  31. package/lib/connection/captcha.js +54 -20
  32. package/lib/connection/database/actions.js +57 -17
  33. package/lib/connection/database/index.js +1 -1
  34. package/lib/connection/database/login_pane.js +11 -13
  35. package/lib/connection/database/login_sign_up_tabs.js +13 -17
  36. package/lib/connection/database/mfa_pane.js +8 -10
  37. package/lib/connection/database/password_reset_confirmation.js +9 -11
  38. package/lib/connection/database/reset_password.js +12 -16
  39. package/lib/connection/database/reset_password_pane.js +20 -12
  40. package/lib/connection/database/signed_up_confirmation.js +9 -11
  41. package/lib/connection/enterprise/actions.js +4 -4
  42. package/lib/connection/enterprise/hrd_pane.js +10 -12
  43. package/lib/connection/enterprise/hrd_screen.js +9 -11
  44. package/lib/connection/enterprise/kerberos_screen.js +9 -11
  45. package/lib/connection/enterprise/quick_auth_screen.js +9 -11
  46. package/lib/connection/enterprise.js +1 -1
  47. package/lib/connection/passwordless/actions.js +7 -7
  48. package/lib/connection/passwordless/ask_vcode.js +8 -10
  49. package/lib/connection/passwordless/email_sent_confirmation.js +16 -22
  50. package/lib/connection/passwordless/index.js +1 -1
  51. package/lib/connection/social/index.js +1 -1
  52. package/lib/core/actions.js +2 -2
  53. package/lib/core/client/index.js +2 -2
  54. package/lib/core/client/settings.js +1 -1
  55. package/lib/core/error_screen.js +9 -11
  56. package/lib/core/index.js +13 -4
  57. package/lib/core/loading_screen.js +12 -16
  58. package/lib/core/remote_data.js +9 -1
  59. package/lib/core/screen.js +3 -4
  60. package/lib/core/signed_in_confirmation.js +9 -11
  61. package/lib/core/sso/last_login_screen.js +9 -11
  62. package/lib/core/tenant/index.js +2 -2
  63. package/lib/core/tenant/settings.js +1 -1
  64. package/lib/core/web_api/helper.js +3 -3
  65. package/lib/core/web_api/p2_api.js +8 -3
  66. package/lib/core/web_api.js +7 -3
  67. package/lib/core.js +12 -14
  68. package/lib/engine/classic/login.js +9 -11
  69. package/lib/engine/classic/mfa_login_screen.js +9 -11
  70. package/lib/engine/classic/sign_up_pane.js +10 -12
  71. package/lib/engine/classic/sign_up_screen.js +9 -11
  72. package/lib/engine/classic.js +3 -4
  73. package/lib/engine/passwordless/social_or_email_login_screen.js +11 -13
  74. package/lib/engine/passwordless/social_or_phone_number_login_screen.js +11 -13
  75. package/lib/engine/passwordless.js +3 -4
  76. package/lib/field/captcha/captcha_pane.js +16 -15
  77. package/lib/field/captcha/third_party_captcha.js +8 -10
  78. package/lib/field/custom_input.js +1 -1
  79. package/lib/field/email/email_pane.js +9 -11
  80. package/lib/field/email.js +1 -1
  81. package/lib/field/index.js +1 -1
  82. package/lib/field/mfa-code/mfa_code_pane.js +9 -11
  83. package/lib/field/password/password_pane.js +11 -13
  84. package/lib/field/phone-number/phone_number_pane.js +10 -12
  85. package/lib/field/social/event.js +1 -1
  86. package/lib/field/social/social_buttons_pane.js +9 -11
  87. package/lib/field/username/username_pane.js +9 -11
  88. package/lib/field/vcode/vcode_pane.js +11 -13
  89. package/lib/i18n/af.js +3 -1
  90. package/lib/i18n/ar.js +3 -1
  91. package/lib/i18n/az.js +3 -1
  92. package/lib/i18n/bg.js +3 -1
  93. package/lib/i18n/ca.js +3 -1
  94. package/lib/i18n/cs.js +3 -1
  95. package/lib/i18n/da.js +3 -1
  96. package/lib/i18n/de.js +3 -1
  97. package/lib/i18n/el.js +3 -1
  98. package/lib/i18n/en.js +3 -1
  99. package/lib/i18n/es.js +3 -1
  100. package/lib/i18n/et.js +3 -1
  101. package/lib/i18n/fa.js +3 -1
  102. package/lib/i18n/fi.js +3 -1
  103. package/lib/i18n/fr.js +3 -1
  104. package/lib/i18n/he.js +3 -1
  105. package/lib/i18n/hr.js +3 -1
  106. package/lib/i18n/hu.js +3 -1
  107. package/lib/i18n/id.js +3 -1
  108. package/lib/i18n/it.js +3 -1
  109. package/lib/i18n/ja.js +3 -1
  110. package/lib/i18n/ko.js +3 -1
  111. package/lib/i18n/lt.js +3 -1
  112. package/lib/i18n/lv.js +3 -1
  113. package/lib/i18n/ms.js +3 -1
  114. package/lib/i18n/nb.js +3 -1
  115. package/lib/i18n/nl.js +3 -1
  116. package/lib/i18n/nn.js +3 -1
  117. package/lib/i18n/no.js +3 -1
  118. package/lib/i18n/pl.js +3 -1
  119. package/lib/i18n/pt-br.js +3 -1
  120. package/lib/i18n/pt.js +3 -1
  121. package/lib/i18n/ro.js +3 -1
  122. package/lib/i18n/ru.js +3 -1
  123. package/lib/i18n/sk.js +3 -1
  124. package/lib/i18n/sl.js +3 -1
  125. package/lib/i18n/sr.js +3 -1
  126. package/lib/i18n/sv.js +3 -1
  127. package/lib/i18n/tr.js +3 -1
  128. package/lib/i18n/ua.js +3 -1
  129. package/lib/i18n/uk.js +3 -1
  130. package/lib/i18n/vi.js +3 -1
  131. package/lib/i18n/zh-tw.js +3 -1
  132. package/lib/i18n/zh.js +3 -1
  133. package/lib/i18n.js +2 -2
  134. package/lib/lock.js +9 -10
  135. package/lib/passwordless.js +9 -10
  136. package/lib/quick-auth/actions.js +2 -2
  137. package/lib/sync.js +1 -1
  138. package/lib/ui/box/chrome.js +12 -16
  139. package/lib/ui/box/confirmation_pane.js +1 -1
  140. package/lib/ui/box/container.js +10 -13
  141. package/lib/ui/box/global_message.js +8 -10
  142. package/lib/ui/box/header.js +18 -26
  143. package/lib/ui/box/multisize_slide.js +12 -16
  144. package/lib/ui/box.js +3 -5
  145. package/lib/ui/input/captcha_input.js +13 -15
  146. package/lib/ui/input/checkbox_input.js +8 -10
  147. package/lib/ui/input/email_input.js +9 -11
  148. package/lib/ui/input/input_wrap.js +8 -10
  149. package/lib/ui/input/location_input.js +8 -10
  150. package/lib/ui/input/mfa_code_input.js +9 -11
  151. package/lib/ui/input/password/password_strength.js +14 -20
  152. package/lib/ui/input/password_input.js +10 -12
  153. package/lib/ui/input/phone_number_input.js +9 -11
  154. package/lib/ui/input/select_input.js +8 -10
  155. package/lib/ui/input/text_input.js +9 -11
  156. package/lib/ui/input/username_input.js +9 -11
  157. package/lib/ui/input/vcode_input.js +9 -11
  158. package/lib/ui/list.js +15 -21
  159. package/lib/utils/atom.js +2 -3
  160. package/lib/utils/cache.js +2 -3
  161. package/lib/utils/jsonp_utils.js +2 -3
  162. package/package.json +4 -4
@@ -11,15 +11,15 @@ 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 : String(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 _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); }
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() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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 ArrowIconSvg = function ArrowIconSvg() {
24
24
  return /*#__PURE__*/_react.default.createElement("svg", {
25
25
  "aria-hidden": "true",
@@ -54,16 +54,15 @@ var ArrowIconSvg = function ArrowIconSvg() {
54
54
  })))))));
55
55
  };
56
56
  var SelectInput = exports.default = /*#__PURE__*/function (_React$Component) {
57
- _inherits(SelectInput, _React$Component);
58
- var _super = _createSuper(SelectInput);
59
57
  function SelectInput(props) {
60
58
  var _this;
61
59
  _classCallCheck(this, SelectInput);
62
- _this = _super.call(this, props);
60
+ _this = _callSuper(this, SelectInput, [props]);
63
61
  _this.state = {};
64
62
  return _this;
65
63
  }
66
- _createClass(SelectInput, [{
64
+ _inherits(SelectInput, _React$Component);
65
+ return _createClass(SelectInput, [{
67
66
  key: "render",
68
67
  value: function render() {
69
68
  var _this$props = this.props,
@@ -137,5 +136,4 @@ var SelectInput = exports.default = /*#__PURE__*/function (_React$Component) {
137
136
  }
138
137
  }
139
138
  }]);
140
- return SelectInput;
141
139
  }(_react.default.Component); // TODO: specify propTypes
@@ -11,30 +11,29 @@ var _excluded = ["lockId", "iconUrl", "invalidHint", "isValid", "name", "ariaLab
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  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); }
13
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
14
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
16
  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); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  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); }
20
- 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); }
21
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
- 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); }; }
20
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
23
21
  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); }
24
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
+ 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); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
  var TextInput = exports.default = /*#__PURE__*/function (_React$Component) {
28
- _inherits(TextInput, _React$Component);
29
- var _super = _createSuper(TextInput);
30
28
  function TextInput(props) {
31
29
  var _this;
32
30
  _classCallCheck(this, TextInput);
33
- _this = _super.call(this, props);
31
+ _this = _callSuper(this, TextInput, [props]);
34
32
  _this.state = {};
35
33
  return _this;
36
34
  }
37
- _createClass(TextInput, [{
35
+ _inherits(TextInput, _React$Component);
36
+ return _createClass(TextInput, [{
38
37
  key: "hasFocus",
39
38
  value: function hasFocus() {
40
39
  return this.state.focused;
@@ -106,5 +105,4 @@ var TextInput = exports.default = /*#__PURE__*/function (_React$Component) {
106
105
  });
107
106
  }
108
107
  }]);
109
- return TextInput;
110
108
  }(_react.default.Component);
@@ -11,19 +11,19 @@ var _excluded = ["invalidHint", "isValid", "onChange", "autoComplete"];
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  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); }
13
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
14
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
16
  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); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  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); }
20
- 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); }
21
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
- 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); }; }
20
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
23
21
  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); }
24
22
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
23
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25
+ 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); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
  var IconSvg = /*#__PURE__*/_react.default.createElement("svg", {
28
28
  "aria-hidden": "true",
29
29
  focusable: "false",
@@ -46,16 +46,15 @@ var IconSvg = /*#__PURE__*/_react.default.createElement("svg", {
46
46
  d: "M25.552,1486.998 L11.449,1486.998 C10.667,1485.799 10.984,1483.399 11.766,1482.6 C12.139,1482.219 14.931,1481.5 16.267,1481.172 C14.856,1480.076 13.995,1478.042 13.995,1476.103 C13.995,1473.284 14.813,1470.999 18.498,1470.999 C22.182,1470.999 23,1473.284 23,1476.103 C23,1478.037 22.145,1480.065 20.74,1481.163 C22.046,1481.489 24.88,1482.228 25.241,1482.601 C26.019,1483.399 26.328,1485.799 25.552,1486.998 L25.552,1486.998 Z M24.6,1483.443 C24.087,1483.169 21.881,1482.548 20,1482.097 L20,1480.513 C21.254,1479.659 21.997,1477.806 21.997,1476.12 C21.997,1473.841 21.414,1471.993 18.499,1471.993 C15.583,1471.993 15,1473.841 15,1476.12 C15,1477.807 15.744,1479.662 17,1480.515 L17,1482.112 C15.109,1482.556 12.914,1483.166 12.409,1483.442 C12.082,1483.854 11.797,1485.173 12,1486 L25,1486 C25.201,1485.174 24.922,1483.858 24.6,1483.443 L24.6,1483.443 Z"
47
47
  }))));
48
48
  var UsernameInput = exports.default = /*#__PURE__*/function (_React$Component) {
49
- _inherits(UsernameInput, _React$Component);
50
- var _super = _createSuper(UsernameInput);
51
49
  function UsernameInput(props) {
52
50
  var _this;
53
51
  _classCallCheck(this, UsernameInput);
54
- _this = _super.call(this, props);
52
+ _this = _callSuper(this, UsernameInput, [props]);
55
53
  _this.state = {};
56
54
  return _this;
57
55
  }
58
- _createClass(UsernameInput, [{
56
+ _inherits(UsernameInput, _React$Component);
57
+ return _createClass(UsernameInput, [{
59
58
  key: "shouldComponentUpdate",
60
59
  value: function shouldComponentUpdate(nextProps, nextState) {
61
60
  var _this$props = this.props,
@@ -123,5 +122,4 @@ var UsernameInput = exports.default = /*#__PURE__*/function (_React$Component) {
123
122
  });
124
123
  }
125
124
  }]);
126
- return UsernameInput;
127
125
  }(_react.default.Component); // TODO: specify propTypes
@@ -12,19 +12,19 @@ var _excluded = ["lockId", "isValid"];
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  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); }
14
14
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
16
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
17
  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); } }
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(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
- 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
- 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); }; }
21
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
22
  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); }
25
23
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
24
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
25
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
+ 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); }
27
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
28
  var IconSvg = /*#__PURE__*/_react.default.createElement("svg", {
29
29
  "aria-hidden": "true",
30
30
  focusable: "false",
@@ -52,16 +52,15 @@ var IconSvg = /*#__PURE__*/_react.default.createElement("svg", {
52
52
  d: "M25.0523108,22.8115806 L20.455448,26.0692401 L20.455448,20.6336024 L25.0523108,17.6924012 L25.0523108,22.8115806 L25.0523108,22.8115806 Z M20.1658456,19.763342 C20.1060864,19.786611 20.050924,19.8145338 19.9957617,19.8471103 C19.9451962,19.8191876 19.8946307,19.786611 19.8394683,19.7679958 L14.9392126,16.7616414 L19.986568,13.8949009 L25.0523108,16.7616414 L25.043117,16.7662952 L20.1658456,19.763342 L20.1658456,19.763342 Z M19.5360754,20.6336024 L19.5360754,26.0692401 L14.9392126,22.8115806 L14.9392126,17.6924012 L19.5360754,20.6336024 L19.5360754,20.6336024 Z M25.9716833,17.6924012 C25.9716833,17.5574411 25.9395053,17.4317885 25.8889398,17.3154435 C26.0728143,16.9664085 26.0314425,16.5242976 25.7418402,16.2311082 L20.4002856,13.2340614 C19.7980966,12.9408721 20.2393954,12.9036417 19.5590597,13.2340614 L14.2634738,16.2311082 C13.9692745,16.5242976 13.9279028,16.9571009 14.1071804,17.3107897 C14.0520181,17.4271347 14.01984,17.5527873 14.01984,17.6924012 L14.01984,22.8115806 C14.01984,23.3234985 14.4335577,23.7423404 14.9392126,23.7423404 L19.5360754,27 C19.7061593,27 19.8578558,26.9395006 19.9957617,26.8557322 C20.1336676,26.9395006 20.285364,27 20.455448,27 L25.511997,23.7423404 C26.017652,23.7423404 25.9716833,23.3234985 25.9716833,22.8115806 L25.9716833,17.6924012 L25.9716833,17.6924012 Z"
53
53
  }))))));
54
54
  var VcodeInput = exports.default = /*#__PURE__*/function (_React$Component) {
55
- _inherits(VcodeInput, _React$Component);
56
- var _super = _createSuper(VcodeInput);
57
55
  function VcodeInput(props) {
58
56
  var _this;
59
57
  _classCallCheck(this, VcodeInput);
60
- _this = _super.call(this, props);
58
+ _this = _callSuper(this, VcodeInput, [props]);
61
59
  _this.state = {};
62
60
  return _this;
63
61
  }
64
- _createClass(VcodeInput, [{
62
+ _inherits(VcodeInput, _React$Component);
63
+ return _createClass(VcodeInput, [{
65
64
  key: "componentDidMount",
66
65
  value: function componentDidMount() {
67
66
  var _this2 = this;
@@ -118,5 +117,4 @@ var VcodeInput = exports.default = /*#__PURE__*/function (_React$Component) {
118
117
  });
119
118
  }
120
119
  }]);
121
- return VcodeInput;
122
120
  }(_react.default.Component); // TODO: specify propTypes
package/lib/ui/list.js CHANGED
@@ -14,41 +14,40 @@ var _media_utils = require("../utils/media_utils");
14
14
  var su = _interopRequireWildcard(require("../utils/string_utils"));
15
15
  var l = _interopRequireWildcard(require("../core/index"));
16
16
  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); }
17
- 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 && Object.prototype.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
+ 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; }
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  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; }
20
20
  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); }
21
21
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22
22
  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); } }
23
23
  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
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
24
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
25
25
  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); }
26
- 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); }
27
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
- 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); }; }
26
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
29
27
  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); }
30
28
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
31
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
32
30
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
31
+ 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); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
  var cycle = function cycle(xs, x) {
34
34
  return xs.skipWhile(function (y) {
35
35
  return y !== x;
36
36
  }).get(1, xs.get(0));
37
37
  };
38
38
  var FiltrableList = exports.default = /*#__PURE__*/function (_React$Component) {
39
- _inherits(FiltrableList, _React$Component);
40
- var _super = _createSuper(FiltrableList);
41
39
  function FiltrableList(props) {
42
40
  var _this;
43
41
  _classCallCheck(this, FiltrableList);
44
- _this = _super.call(this, props);
42
+ _this = _callSuper(this, FiltrableList, [props]);
45
43
  _this.state = {
46
44
  filteredItems: props.items,
47
45
  highlighted: props.defaultItem
48
46
  };
49
47
  return _this;
50
48
  }
51
- _createClass(FiltrableList, [{
49
+ _inherits(FiltrableList, _React$Component);
50
+ return _createClass(FiltrableList, [{
52
51
  key: "filter",
53
52
  value: function filter(str) {
54
53
  var filteredItems = this.props.items.filter(function (x) {
@@ -136,16 +135,14 @@ var FiltrableList = exports.default = /*#__PURE__*/function (_React$Component) {
136
135
  }));
137
136
  }
138
137
  }]);
139
- return FiltrableList;
140
138
  }(_react.default.Component);
141
139
  var List = /*#__PURE__*/function (_React$Component2) {
142
- _inherits(List, _React$Component2);
143
- var _super2 = _createSuper(List);
144
140
  function List() {
145
141
  _classCallCheck(this, List);
146
- return _super2.apply(this, arguments);
142
+ return _callSuper(this, List, arguments);
147
143
  }
148
- _createClass(List, [{
144
+ _inherits(List, _React$Component2);
145
+ return _createClass(List, [{
149
146
  key: "componentDidUpdate",
150
147
  value: function componentDidUpdate() {
151
148
  var _this3 = this;
@@ -215,16 +212,14 @@ var List = /*#__PURE__*/function (_React$Component2) {
215
212
  }, /*#__PURE__*/_react.default.createElement("ul", null, items));
216
213
  }
217
214
  }]);
218
- return List;
219
215
  }(_react.default.Component);
220
216
  var Item = /*#__PURE__*/function (_React$Component3) {
221
- _inherits(Item, _React$Component3);
222
- var _super3 = _createSuper(Item);
223
217
  function Item() {
224
218
  _classCallCheck(this, Item);
225
- return _super3.apply(this, arguments);
219
+ return _callSuper(this, Item, arguments);
226
220
  }
227
- _createClass(Item, [{
221
+ _inherits(Item, _React$Component3);
222
+ return _createClass(Item, [{
228
223
  key: "shouldComponentUpdate",
229
224
  value: function shouldComponentUpdate(nextProps) {
230
225
  return this.props.highlighted != nextProps.highlighted;
@@ -245,7 +240,6 @@ var Item = /*#__PURE__*/function (_React$Component3) {
245
240
  }, label);
246
241
  }
247
242
  }]);
248
- return Item;
249
243
  }(_react.default.Component);
250
244
  _defineProperty(Item, "propTypes", {
251
245
  highlighted: _propTypes.default.bool.isRequired,
package/lib/utils/atom.js CHANGED
@@ -8,7 +8,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
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; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
12
  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); }
13
13
  var Atom = /*#__PURE__*/function () {
14
14
  function Atom(state) {
@@ -16,7 +16,7 @@ var Atom = /*#__PURE__*/function () {
16
16
  this.state = state;
17
17
  this.watches = {};
18
18
  }
19
- _createClass(Atom, [{
19
+ return _createClass(Atom, [{
20
20
  key: "reset",
21
21
  value: function reset(state) {
22
22
  return this._change(state);
@@ -64,7 +64,6 @@ var Atom = /*#__PURE__*/function () {
64
64
  return this.state;
65
65
  }
66
66
  }]);
67
- return Atom;
68
67
  }();
69
68
  function atom(state) {
70
69
  return new Atom(state);
@@ -14,7 +14,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
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 : String(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 Cache = exports.default = /*#__PURE__*/function () {
20
20
  function Cache(fetchFn) {
@@ -23,7 +23,7 @@ var Cache = exports.default = /*#__PURE__*/function () {
23
23
  this.cbs = {};
24
24
  this.fetchFn = fetchFn;
25
25
  }
26
- _createClass(Cache, [{
26
+ return _createClass(Cache, [{
27
27
  key: "get",
28
28
  value: function get() {
29
29
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -63,5 +63,4 @@ var Cache = exports.default = /*#__PURE__*/function () {
63
63
  delete this.cbs[key];
64
64
  }
65
65
  }]);
66
- return Cache;
67
66
  }();
@@ -10,18 +10,17 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
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; }
13
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  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); }
15
15
  var JSONPUtils = /*#__PURE__*/function () {
16
16
  function JSONPUtils() {
17
17
  _classCallCheck(this, JSONPUtils);
18
18
  }
19
- _createClass(JSONPUtils, [{
19
+ return _createClass(JSONPUtils, [{
20
20
  key: "get",
21
21
  value: function get() {
22
22
  return _jsonp.default.apply(void 0, arguments);
23
23
  }
24
24
  }]);
25
- return JSONPUtils;
26
25
  }();
27
26
  var _default = exports.default = new JSONPUtils();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "12.4.0",
3
+ "version": "12.5.1",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",
@@ -61,7 +61,7 @@
61
61
  "@babel/plugin-syntax-import-meta": "^7.0.0",
62
62
  "@babel/preset-env": "^7.0.0",
63
63
  "@babel/preset-react": "^7.0.0",
64
- "@cfaester/enzyme-adapter-react-18": "^0.7.0",
64
+ "@cfaester/enzyme-adapter-react-18": "^0.8.0",
65
65
  "@google-cloud/translate": "^6.0.2",
66
66
  "babel-jest": "^29.3.1",
67
67
  "babel-loader": "8.3.0",
@@ -111,7 +111,7 @@
111
111
  "puppeteer": "^10.1.0",
112
112
  "react-test-renderer": "^18.2.0",
113
113
  "sinon": "^1.15.4",
114
- "stylus": "^0.62.0",
114
+ "stylus": "^0.63.0",
115
115
  "stylus-loader": "^3.0.2",
116
116
  "tmp": "^0.2.1",
117
117
  "unminified-webpack-plugin": "^3.0.0",
@@ -121,7 +121,7 @@
121
121
  "webpack-dev-server": "^4.11.1"
122
122
  },
123
123
  "dependencies": {
124
- "auth0-js": "^9.23.3",
124
+ "auth0-js": "^9.26.0",
125
125
  "auth0-password-policies": "^1.0.2",
126
126
  "blueimp-md5": "^2.19.0",
127
127
  "classnames": "^2.3.2",