auth0-lock 12.0.0-beta.0 → 12.0.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 (86) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/DEVELOPMENT.md +1 -1
  3. package/EXAMPLES.md +27 -2
  4. package/Makefile +2 -2
  5. package/README.md +9 -8
  6. package/lib/__tests__/connection/database/login_pane.js +7 -9
  7. package/lib/__tests__/connection/database/password_reset_confirmation.js +9 -11
  8. package/lib/__tests__/connection/database/signed_up_confirmation.js +9 -11
  9. package/lib/__tests__/connection/enterprise/quick_auth_screen.js +8 -10
  10. package/lib/__tests__/connection/passwordless/email_sent_confirmation.js +9 -11
  11. package/lib/__tests__/connection/passwordless/passwordless.js +4 -2
  12. package/lib/__tests__/core/remote_data.js +2 -2
  13. package/lib/__tests__/core/signed_in_confirmation.js +9 -11
  14. package/lib/__tests__/engine/passwordless/social_or_email_login_screen.js +105 -0
  15. package/lib/__tests__/engine/passwordless/social_or_phone_number_login_screen.js +105 -0
  16. package/lib/__tests__/ui/box/confirmation_pane.js +7 -9
  17. package/lib/connection/captcha.js +20 -6
  18. package/lib/connection/database/actions.js +5 -5
  19. package/lib/connection/database/login_pane.js +1 -1
  20. package/lib/connection/enterprise/actions.js +2 -2
  21. package/lib/connection/enterprise/hrd_pane.js +1 -1
  22. package/lib/connection/enterprise.js +1 -1
  23. package/lib/connection/passwordless/actions.js +29 -10
  24. package/lib/connection/social/index.js +1 -1
  25. package/lib/core/client/index.js +1 -1
  26. package/lib/core/index.js +10 -6
  27. package/lib/core/remote_data.js +8 -0
  28. package/lib/core/tenant/index.js +1 -1
  29. package/lib/core/web_api/helper.js +1 -1
  30. package/lib/core/web_api/p2_api.js +6 -0
  31. package/lib/core/web_api.js +5 -0
  32. package/lib/core.js +1 -1
  33. package/lib/engine/classic/sign_up_pane.js +1 -1
  34. package/lib/engine/passwordless/social_or_email_login_screen.js +11 -1
  35. package/lib/engine/passwordless/social_or_phone_number_login_screen.js +11 -1
  36. package/lib/field/captcha/captcha_pane.js +6 -5
  37. package/lib/i18n/af.js +3 -1
  38. package/lib/i18n/ar.js +3 -1
  39. package/lib/i18n/az.js +3 -1
  40. package/lib/i18n/bg.js +3 -1
  41. package/lib/i18n/ca.js +3 -1
  42. package/lib/i18n/cs.js +3 -1
  43. package/lib/i18n/da.js +3 -1
  44. package/lib/i18n/de.js +3 -1
  45. package/lib/i18n/el.js +3 -1
  46. package/lib/i18n/en.js +3 -1
  47. package/lib/i18n/es.js +3 -1
  48. package/lib/i18n/et.js +3 -1
  49. package/lib/i18n/fa.js +3 -1
  50. package/lib/i18n/fi.js +3 -1
  51. package/lib/i18n/fr.js +3 -1
  52. package/lib/i18n/he.js +3 -1
  53. package/lib/i18n/hr.js +3 -1
  54. package/lib/i18n/hu.js +3 -1
  55. package/lib/i18n/id.js +3 -1
  56. package/lib/i18n/it.js +3 -1
  57. package/lib/i18n/ja.js +3 -1
  58. package/lib/i18n/ko.js +3 -1
  59. package/lib/i18n/lt.js +3 -1
  60. package/lib/i18n/lv.js +3 -1
  61. package/lib/i18n/ms.js +3 -1
  62. package/lib/i18n/nb.js +3 -1
  63. package/lib/i18n/nl.js +3 -1
  64. package/lib/i18n/nn.js +3 -1
  65. package/lib/i18n/no.js +3 -1
  66. package/lib/i18n/pl.js +3 -1
  67. package/lib/i18n/pt-br.js +3 -1
  68. package/lib/i18n/pt.js +3 -1
  69. package/lib/i18n/ro.js +3 -1
  70. package/lib/i18n/ru.js +3 -1
  71. package/lib/i18n/sk.js +3 -1
  72. package/lib/i18n/sl.js +3 -1
  73. package/lib/i18n/sr.js +3 -1
  74. package/lib/i18n/sv.js +3 -1
  75. package/lib/i18n/tr.js +3 -1
  76. package/lib/i18n/ua.js +3 -1
  77. package/lib/i18n/uk.js +3 -1
  78. package/lib/i18n/vi.js +3 -1
  79. package/lib/i18n/zh-tw.js +3 -1
  80. package/lib/i18n/zh.js +3 -1
  81. package/lib/i18n.js +1 -1
  82. package/lib/lock.js +1 -1
  83. package/lib/passwordless.js +1 -1
  84. package/lib/ui/input/password/password_strength.js +1 -1
  85. package/lib/utils/cache.js +1 -1
  86. package/package.json +2 -2
package/lib/i18n/zh-tw.js CHANGED
@@ -37,7 +37,9 @@ var _default = {
37
37
  passwordless: {
38
38
  'bad.email': '電子信箱錯誤',
39
39
  'bad.phone_number': '手機號碼錯誤。',
40
- 'lock.fallback': '對不起,發生錯誤。'
40
+ 'lock.fallback': '對不起,發生錯誤。',
41
+ invalid_captcha: '解決挑戰問題以驗證您不是機器人。',
42
+ invalid_recaptcha: '選中復選框以確認您不是機器人。'
41
43
  },
42
44
  signUp: {
43
45
  invalid_password: '密碼錯誤',
package/lib/i18n/zh.js CHANGED
@@ -37,7 +37,9 @@ var _default = {
37
37
  passwordless: {
38
38
  'bad.email': '邮箱错误',
39
39
  'bad.phone_number': '手机号码格式不正确。',
40
- 'lock.fallback': '对不起,出现错误。'
40
+ 'lock.fallback': '对不起,出现错误。',
41
+ invalid_captcha: '解决挑战问题以验证您不是机器人。',
42
+ invalid_recaptcha: '选中复选框以确认您不是机器人。'
41
43
  },
42
44
  signUp: {
43
45
  invalid_password: '密码错误',
package/lib/i18n.js CHANGED
@@ -91,7 +91,7 @@ function assertLanguage(m, language, base) {
91
91
  function syncLang(m, language, _cb) {
92
92
  (0, _cdn_utils.load)({
93
93
  method: 'registerLanguageDictionary',
94
- url: "".concat(l.languageBaseUrl(m), "/js/lock/").concat("12.0.0-beta.0", "/").concat(language, ".js"),
94
+ url: "".concat(l.languageBaseUrl(m), "/js/lock/").concat("12.0.1", "/").concat(language, ".js"),
95
95
  check: function check(str) {
96
96
  return str && str === language;
97
97
  },
package/lib/lock.js CHANGED
@@ -39,7 +39,7 @@ var Auth0Lock = /*#__PURE__*/function (_Core) {
39
39
  return _createClass(Auth0Lock);
40
40
  }(_core.default); // telemetry
41
41
  exports.default = Auth0Lock;
42
- Auth0Lock.version = "12.0.0-beta.0";
42
+ Auth0Lock.version = "12.0.1";
43
43
 
44
44
  // TODO: should we have different telemetry for classic/passwordless?
45
45
  // TODO: should we set telemetry info before each request?
@@ -39,4 +39,4 @@ var Auth0LockPasswordless = /*#__PURE__*/function (_Core) {
39
39
  return _createClass(Auth0LockPasswordless);
40
40
  }(_core.default);
41
41
  exports.default = Auth0LockPasswordless;
42
- Auth0LockPasswordless.version = "12.0.0-beta.0";
42
+ Auth0LockPasswordless.version = "12.0.1";
@@ -16,7 +16,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
16
16
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
17
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
18
18
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
19
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
19
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
20
20
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
21
  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); } }
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -10,7 +10,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
10
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
11
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
12
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
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; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "12.0.0-beta.0",
3
+ "version": "12.0.1",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",
@@ -124,7 +124,7 @@
124
124
  "webpack-dev-server": "^4.11.1"
125
125
  },
126
126
  "dependencies": {
127
- "auth0-js": "^9.19.2",
127
+ "auth0-js": "^9.20.0",
128
128
  "auth0-password-policies": "^1.0.2",
129
129
  "blueimp-md5": "^2.19.0",
130
130
  "classnames": "^2.3.2",