auth0-lock 14.2.3 → 14.2.4

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/.version CHANGED
@@ -1 +1 @@
1
- v14.2.3
1
+ v14.2.4
package/CHANGELOG.md CHANGED
@@ -1,14 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## [v14.2.4](https://github.com/auth0/lock/tree/v14.2.4) (2026-01-21)
4
+ [Full Changelog](https://github.com/auth0/lock/compare/v14.2.3...v14.2.4)
5
+
6
+ **Fixed**
7
+ - fix: update className and InputWrap name in SelectInput component (#2534) [\#2719](https://github.com/auth0/lock/pull/2719) ([ankita10119](https://github.com/ankita10119))
8
+ - fix: handle undefined and empty domain values in HRD screen (#2526) [\#2720](https://github.com/auth0/lock/pull/2720) ([ankita10119](https://github.com/ankita10119))
9
+ - fix: add 'too_many_attempts' to error codes in logInError function [\#2718](https://github.com/auth0/lock/pull/2718) ([ankita10119](https://github.com/ankita10119))
10
+
3
11
  ## [v14.2.3](https://github.com/auth0/lock/tree/v14.2.3) (2026-01-12)
4
12
  [Full Changelog](https://github.com/auth0/lock/compare/v14.2.2...v14.2.3)
5
13
 
6
14
  **Added**
7
15
  - feat: add too_many_attempts error to passwordless [\#2700](https://github.com/auth0/lock/pull/2700) ([avamachado-okta](https://github.com/avamachado-okta))
8
16
 
9
- **Changed**
10
- - Update: Upgrade Node.js from 18 to 22 [\#2711](https://github.com/auth0/lock/pull/2711) ([ankita10119](https://github.com/ankita10119))
11
-
12
17
  ## [v14.2.2](https://github.com/auth0/lock/tree/v14.2.2) (2025-12-16)
13
18
  [Full Changelog](https://github.com/auth0/lock/compare/v14.2.1...v14.2.2)
14
19
 
package/README.md CHANGED
@@ -31,7 +31,7 @@ From CDN
31
31
 
32
32
  ```html
33
33
  <!-- Latest patch release (recommended for production) -->
34
- <script src="https://cdn.auth0.com/js/lock/14.2.3/lock.min.js"></script>
34
+ <script src="https://cdn.auth0.com/js/lock/14.2.4/lock.min.js"></script>
35
35
  ```
36
36
 
37
37
  ### Configure Auth0
@@ -65,4 +65,57 @@ describe('HRDScreen Component', function () {
65
65
  i18n: i18nProp
66
66
  })).toMatchSnapshot();
67
67
  });
68
+ it('renders correctly when enterprise domain is undefined', function () {
69
+ require('connection/enterprise').enterpriseDomain.mockImplementation(function () {
70
+ return undefined;
71
+ });
72
+ var Component = getComponent();
73
+ (0, _testUtils.expectComponent)(/*#__PURE__*/_react.default.createElement(Component, {
74
+ model: lock,
75
+ i18n: i18nProp
76
+ })).toMatchSnapshot();
77
+ });
78
+ it('does not show "undefined" in message when enterprise domain is undefined', function () {
79
+ require('connection/enterprise').enterpriseDomain.mockImplementation(function () {
80
+ return undefined;
81
+ });
82
+ var _i18nProp = i18nProp,
83
+ str = _i18nProp.str;
84
+
85
+ // Should use the fallback message without domain placeholder
86
+ var expectedMessage = str('enterpriseLoginIntructions');
87
+ expect(expectedMessage).toContain('Login with your corporate credentials.');
88
+ expect(expectedMessage).not.toContain('undefined');
89
+ });
90
+ it('does not show "undefined" in message when enterprise domain is null', function () {
91
+ require('connection/enterprise').enterpriseDomain.mockImplementation(function () {
92
+ return null;
93
+ });
94
+ var _i18nProp2 = i18nProp,
95
+ str = _i18nProp2.str;
96
+ // Should use the fallback message without domain placeholder
97
+ var expectedMessage = str('enterpriseLoginIntructions');
98
+ expect(expectedMessage).toContain('Login with your corporate credentials.');
99
+ expect(expectedMessage).not.toContain('undefined');
100
+ });
101
+ it('uses fallback message when enterprise domain is empty string', function () {
102
+ require('connection/enterprise').enterpriseDomain.mockImplementation(function () {
103
+ return '';
104
+ });
105
+ var Component = getComponent();
106
+ (0, _testUtils.expectComponent)(/*#__PURE__*/_react.default.createElement(Component, {
107
+ model: lock,
108
+ i18n: i18nProp
109
+ })).toMatchSnapshot();
110
+ });
111
+ it('uses fallback message when enterprise domain is whitespace only', function () {
112
+ require('connection/enterprise').enterpriseDomain.mockImplementation(function () {
113
+ return ' ';
114
+ });
115
+ var Component = getComponent();
116
+ (0, _testUtils.expectComponent)(/*#__PURE__*/_react.default.createElement(Component, {
117
+ model: lock,
118
+ i18n: i18nProp
119
+ })).toMatchSnapshot();
120
+ });
68
121
  });
@@ -31,7 +31,7 @@ var Component = function Component(_ref) {
31
31
  model = _ref.model;
32
32
  var domain = (0, _enterprise.enterpriseDomain)(model);
33
33
  var headerText;
34
- if (domain !== null) {
34
+ if (domain && domain.trim()) {
35
35
  headerText = i18n.str('enterpriseActiveLoginInstructions', domain);
36
36
  } else {
37
37
  headerText = i18n.str('enterpriseLoginIntructions');
@@ -238,7 +238,7 @@ function logInError(id, fields, error) {
238
238
  return setTimeout(function () {
239
239
  var m = (0, _index.read)(_index.getEntity, 'lock', id);
240
240
  var errorMessage = l.loginErrorMessage(m, error, loginType(fields));
241
- var errorCodesThatEmitAuthorizationErrorEvent = ['blocked_user', 'rule_error', 'lock.unauthorized', 'invalid_user_password', 'login_required'];
241
+ var errorCodesThatEmitAuthorizationErrorEvent = ['blocked_user', 'rule_error', 'lock.unauthorized', 'invalid_user_password', 'login_required', 'too_many_attempts'];
242
242
  if (errorCodesThatEmitAuthorizationErrorEvent.indexOf(errorCode) > -1) {
243
243
  l.emitAuthorizationErrorEvent(m, error);
244
244
  }
@@ -169,5 +169,5 @@ function trimAuthParams() {
169
169
  return p;
170
170
  }
171
171
  function getVersion() {
172
- return "14.2.3";
172
+ return "14.2.4";
173
173
  }
package/lib/i18n.js CHANGED
@@ -90,7 +90,7 @@ function assertLanguage(m, language, base) {
90
90
  function syncLang(m, language, _cb) {
91
91
  (0, _cdn_utils.load)({
92
92
  method: 'registerLanguageDictionary',
93
- url: "".concat(l.languageBaseUrl(m), "/js/lock/").concat("14.2.3", "/").concat(language, ".js"),
93
+ url: "".concat(l.languageBaseUrl(m), "/js/lock/").concat("14.2.4", "/").concat(language, ".js"),
94
94
  check: function check(str) {
95
95
  return str && str === language;
96
96
  },
package/lib/lock.js CHANGED
@@ -36,7 +36,7 @@ var Auth0Lock = exports.default = /*#__PURE__*/function (_Core) {
36
36
  _inherits(Auth0Lock, _Core);
37
37
  return _createClass(Auth0Lock);
38
38
  }(_core.default); // telemetry
39
- Auth0Lock.version = "14.2.3";
39
+ Auth0Lock.version = "14.2.4";
40
40
 
41
41
  // TODO: should we have different telemetry for classic/passwordless?
42
42
  // TODO: should we set telemetry info before each request?
@@ -36,4 +36,4 @@ var Auth0LockPasswordless = exports.default = /*#__PURE__*/function (_Core) {
36
36
  _inherits(Auth0LockPasswordless, _Core);
37
37
  return _createClass(Auth0LockPasswordless);
38
38
  }(_core.default);
39
- Auth0LockPasswordless.version = "14.2.3";
39
+ Auth0LockPasswordless.version = "14.2.4";
@@ -87,12 +87,12 @@ var SelectInput = exports.default = /*#__PURE__*/function (_React$Component) {
87
87
  src: iconUrl
88
88
  });
89
89
  }
90
- var className = 'auth0-lock-input auth0-lock-input-location';
90
+ var className = "auth0-lock-input auth0-lock-input-".concat(name);
91
91
  if (!label) className += ' auth0-lock-input-with-placeholder';
92
92
  return /*#__PURE__*/_react.default.createElement(_input_wrap.default, {
93
93
  focused: focused,
94
94
  isValid: isValid,
95
- name: "location",
95
+ name: name,
96
96
  icon: icon
97
97
  }, /*#__PURE__*/_react.default.createElement("input", {
98
98
  id: "".concat(lockId, "-").concat(name),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "14.2.3",
3
+ "version": "14.2.4",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",