auth0-lock 12.2.0 → 12.3.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.
Files changed (182) hide show
  1. package/.github/dependabot.yml +7 -0
  2. package/.github/workflows/publish.yml +88 -41
  3. package/.github/workflows/test.yml +8 -16
  4. package/.shiprc +1 -1
  5. package/CHANGELOG.md +6 -0
  6. package/DEVELOPMENT.md +8 -8
  7. package/Makefile +22 -0
  8. package/README.md +1 -1
  9. package/lib/__tests__/connection/database/actions.js +1 -1
  10. package/lib/__tests__/connection/database/index.js +1 -1
  11. package/lib/__tests__/connection/database/login_pane.js +2 -2
  12. package/lib/__tests__/connection/database/password_reset_confirmation.js +2 -2
  13. package/lib/__tests__/connection/database/signed_up_confirmation.js +2 -2
  14. package/lib/__tests__/connection/enterprise/actions.js +1 -1
  15. package/lib/__tests__/connection/enterprise/hrd_pane.js +1 -1
  16. package/lib/__tests__/connection/enterprise/hrd_screen.js +1 -1
  17. package/lib/__tests__/connection/enterprise/quick_auth_screen.js +2 -2
  18. package/lib/__tests__/connection/passwordless/ask_vcode.js +1 -1
  19. package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +2 -2
  20. package/lib/__tests__/core/actions.js +1 -1
  21. package/lib/__tests__/core/remote_data.js +2 -2
  22. package/lib/__tests__/core/signed_in_confirmation.js +2 -2
  23. package/lib/__tests__/core/sso/last_login_screen.js +1 -1
  24. package/lib/__tests__/core/tenant.js +1 -1
  25. package/lib/__tests__/core/web_api.js +3 -3
  26. package/lib/__tests__/engine/classic.js +3 -3
  27. package/lib/__tests__/field/captcha/arkose.js +29 -0
  28. package/lib/__tests__/field/captcha/friendlyCaptcha.js +17 -47
  29. package/lib/__tests__/field/captcha/hcaptcha.js +17 -47
  30. package/lib/__tests__/field/captcha/recaptcha_enterprise.js +17 -47
  31. package/lib/__tests__/field/captcha/recaptchav2.js +17 -47
  32. package/lib/__tests__/field/captcha.js +30 -1
  33. package/lib/__tests__/field/field.js +1 -1
  34. package/lib/__tests__/i18n.js +1 -1
  35. package/lib/__tests__/testUtils.js +10 -17
  36. package/lib/__tests__/ui/box/chrome.js +3 -3
  37. package/lib/__tests__/ui/box/confirmation_pane.js +2 -2
  38. package/lib/avatar.js +2 -3
  39. package/lib/connection/captcha.js +1 -1
  40. package/lib/connection/database/actions.js +1 -1
  41. package/lib/connection/database/index.js +1 -1
  42. package/lib/connection/database/login_pane.js +2 -3
  43. package/lib/connection/database/login_sign_up_tabs.js +2 -3
  44. package/lib/connection/database/mfa_pane.js +2 -3
  45. package/lib/connection/database/password_reset_confirmation.js +2 -3
  46. package/lib/connection/database/reset_password.js +2 -3
  47. package/lib/connection/database/reset_password_pane.js +2 -3
  48. package/lib/connection/database/sign_up_terms.js +1 -2
  49. package/lib/connection/database/signed_up_confirmation.js +2 -3
  50. package/lib/connection/enterprise/actions.js +3 -3
  51. package/lib/connection/enterprise/hrd_pane.js +2 -3
  52. package/lib/connection/enterprise/hrd_screen.js +2 -3
  53. package/lib/connection/enterprise/kerberos_screen.js +2 -3
  54. package/lib/connection/enterprise/quick_auth_screen.js +2 -3
  55. package/lib/connection/enterprise/single_sign_on_notice.js +1 -2
  56. package/lib/connection/enterprise.js +4 -4
  57. package/lib/connection/passwordless/actions.js +3 -3
  58. package/lib/connection/passwordless/ask_vcode.js +2 -3
  59. package/lib/connection/passwordless/email_sent_confirmation.js +2 -3
  60. package/lib/connection/passwordless/index.js +1 -1
  61. package/lib/connection/social/index.js +2 -3
  62. package/lib/core/actions.js +3 -3
  63. package/lib/core/client/index.js +3 -3
  64. package/lib/core/client/settings.js +1 -1
  65. package/lib/core/error_screen.js +2 -3
  66. package/lib/core/index.js +5 -9
  67. package/lib/core/loading_screen.js +2 -3
  68. package/lib/core/pane_separator.js +1 -2
  69. package/lib/core/remote_data.js +1 -1
  70. package/lib/core/screen.js +2 -3
  71. package/lib/core/signed_in_confirmation.js +2 -3
  72. package/lib/core/sso/last_login_screen.js +2 -3
  73. package/lib/core/tenant/index.js +3 -3
  74. package/lib/core/tenant/settings.js +1 -1
  75. package/lib/core/web_api/helper.js +2 -2
  76. package/lib/core/web_api/p2_api.js +4 -5
  77. package/lib/core/web_api.js +2 -3
  78. package/lib/core.js +3 -4
  79. package/lib/engine/classic/login.js +2 -3
  80. package/lib/engine/classic/mfa_login_screen.js +2 -3
  81. package/lib/engine/classic/sign_up_pane.js +2 -3
  82. package/lib/engine/classic/sign_up_screen.js +2 -3
  83. package/lib/engine/classic.js +4 -4
  84. package/lib/engine/passwordless/social_or_email_login_screen.js +2 -3
  85. package/lib/engine/passwordless/social_or_phone_number_login_screen.js +2 -3
  86. package/lib/engine/passwordless.js +2 -3
  87. package/lib/field/captcha/captcha_pane.js +3 -3
  88. package/lib/field/captcha/third_party_captcha.js +129 -47
  89. package/lib/field/custom_input.js +2 -3
  90. package/lib/field/email/email_pane.js +2 -3
  91. package/lib/field/email.js +1 -1
  92. package/lib/field/index.js +1 -1
  93. package/lib/field/mfa-code/mfa_code_pane.js +2 -3
  94. package/lib/field/option_selection_pane.js +1 -2
  95. package/lib/field/password/password_pane.js +2 -3
  96. package/lib/field/phone-number/locations.js +1 -2
  97. package/lib/field/phone-number/phone_number_pane.js +3 -5
  98. package/lib/field/social/event.js +1 -1
  99. package/lib/field/social/social_buttons_pane.js +2 -3
  100. package/lib/field/username/username_pane.js +2 -3
  101. package/lib/field/vcode/vcode_pane.js +2 -3
  102. package/lib/i18n/af.js +1 -2
  103. package/lib/i18n/ar.js +1 -2
  104. package/lib/i18n/az.js +1 -2
  105. package/lib/i18n/bg.js +1 -2
  106. package/lib/i18n/ca.js +1 -2
  107. package/lib/i18n/cs.js +1 -2
  108. package/lib/i18n/da.js +1 -2
  109. package/lib/i18n/de.js +1 -2
  110. package/lib/i18n/el.js +1 -2
  111. package/lib/i18n/en.js +1 -2
  112. package/lib/i18n/es.js +1 -2
  113. package/lib/i18n/et.js +1 -2
  114. package/lib/i18n/fa.js +1 -2
  115. package/lib/i18n/fi.js +1 -2
  116. package/lib/i18n/fr.js +1 -2
  117. package/lib/i18n/he.js +1 -2
  118. package/lib/i18n/hr.js +1 -2
  119. package/lib/i18n/hu.js +1 -2
  120. package/lib/i18n/id.js +1 -2
  121. package/lib/i18n/it.js +1 -2
  122. package/lib/i18n/ja.js +1 -2
  123. package/lib/i18n/ko.js +1 -2
  124. package/lib/i18n/lt.js +1 -2
  125. package/lib/i18n/lv.js +1 -2
  126. package/lib/i18n/ms.js +1 -2
  127. package/lib/i18n/nb.js +1 -2
  128. package/lib/i18n/nl.js +1 -2
  129. package/lib/i18n/nn.js +1 -2
  130. package/lib/i18n/no.js +1 -2
  131. package/lib/i18n/pl.js +1 -2
  132. package/lib/i18n/pt-br.js +1 -2
  133. package/lib/i18n/pt.js +1 -2
  134. package/lib/i18n/ro.js +1 -2
  135. package/lib/i18n/ru.js +1 -2
  136. package/lib/i18n/sk.js +1 -2
  137. package/lib/i18n/sl.js +1 -2
  138. package/lib/i18n/sr.js +1 -2
  139. package/lib/i18n/sv.js +1 -2
  140. package/lib/i18n/tr.js +1 -2
  141. package/lib/i18n/ua.js +1 -2
  142. package/lib/i18n/uk.js +1 -2
  143. package/lib/i18n/vi.js +1 -2
  144. package/lib/i18n/zh-tw.js +1 -2
  145. package/lib/i18n/zh.js +1 -2
  146. package/lib/i18n.js +2 -2
  147. package/lib/index.js +3 -6
  148. package/lib/lock.js +3 -4
  149. package/lib/passwordless.js +3 -4
  150. package/lib/quick-auth/actions.js +3 -3
  151. package/lib/sync.js +3 -5
  152. package/lib/ui/box/button.js +2 -4
  153. package/lib/ui/box/chrome.js +2 -3
  154. package/lib/ui/box/confirmation_pane.js +2 -3
  155. package/lib/ui/box/container.js +3 -5
  156. package/lib/ui/box/global_message.js +2 -3
  157. package/lib/ui/box/header.js +2 -3
  158. package/lib/ui/box/multisize_slide.js +2 -3
  159. package/lib/ui/box/success_pane.js +1 -2
  160. package/lib/ui/box.js +3 -5
  161. package/lib/ui/button/auth_button.js +1 -2
  162. package/lib/ui/input/captcha_input.js +2 -3
  163. package/lib/ui/input/checkbox_input.js +2 -3
  164. package/lib/ui/input/email_input.js +2 -3
  165. package/lib/ui/input/input_wrap.js +2 -3
  166. package/lib/ui/input/location_input.js +3 -5
  167. package/lib/ui/input/mfa_code_input.js +2 -3
  168. package/lib/ui/input/password/password_strength.js +2 -3
  169. package/lib/ui/input/password_input.js +3 -5
  170. package/lib/ui/input/phone_number_input.js +2 -3
  171. package/lib/ui/input/select_input.js +2 -3
  172. package/lib/ui/input/text_input.js +2 -3
  173. package/lib/ui/input/username_input.js +2 -3
  174. package/lib/ui/input/vcode_input.js +2 -3
  175. package/lib/ui/list.js +2 -3
  176. package/lib/ui/pane/quick_auth_pane.js +1 -2
  177. package/lib/utils/atom.js +1 -1
  178. package/lib/utils/cache.js +2 -3
  179. package/lib/utils/data_utils.js +1 -1
  180. package/lib/utils/format.js +1 -1
  181. package/lib/utils/jsonp_utils.js +2 -3
  182. package/package.json +2 -2
@@ -9,9 +9,9 @@ var _qs = _interopRequireDefault(require("qs"));
9
9
  var _cordovaAuth0PluginMin = _interopRequireDefault(require("auth0-js/dist/cordova-auth0-plugin.min.js"));
10
10
  var _helper = require("./helper");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ 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); }
13
+ 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; }
14
+ 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; }
15
15
  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; }
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); } }
@@ -213,5 +213,4 @@ var Auth0APIClient = /*#__PURE__*/function () {
213
213
  }]);
214
214
  return Auth0APIClient;
215
215
  }();
216
- var _default = Auth0APIClient;
217
- exports.default = _default;
216
+ var _default = exports.default = Auth0APIClient;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _p2_api = _interopRequireDefault(require("./web_api/p2_api"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
10
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
11
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
12
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -113,5 +113,4 @@ var Auth0WebAPI = /*#__PURE__*/function () {
113
113
  }]);
114
114
  return Auth0WebAPI;
115
115
  }();
116
- var _default = new Auth0WebAPI();
117
- exports.default = _default;
116
+ var _default = exports.default = new Auth0WebAPI();