auth0-lock 11.34.0 → 11.34.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Change Log
2
2
 
3
+ ## [v11.34.2](https://github.com/auth0/lock/tree/v11.34.2) (2022-10-10)
4
+ [Full Changelog](https://github.com/auth0/lock/compare/v11.34.1...v11.34.2)
5
+
6
+ **Fixed**
7
+ - [SDK-3657] Render sign up confirmation before sign in [\#2180](https://github.com/auth0/lock/pull/2180) ([ewanharris](https://github.com/ewanharris))
8
+
9
+ ## [v11.34.1](https://github.com/auth0/lock/tree/v11.34.1) (2022-09-29)
10
+ [Full Changelog](https://github.com/auth0/lock/compare/v11.34.0...v11.34.1)
11
+
12
+ **Fixed**
13
+ - [ESD-22705] Don't pass function to ConfirmationPane unless closable is enabled [\#2176](https://github.com/auth0/lock/pull/2176) ([ewanharris](https://github.com/ewanharris))
14
+
15
+ **Security**
16
+ - [ESD-22866] Disable spellcheck and autocorrect on all sensitive input fields [\#2178](https://github.com/auth0/lock/pull/2178) ([ewanharris](https://github.com/ewanharris))
17
+
3
18
  ## [v11.34.0](https://github.com/auth0/lock/tree/v11.34.0) (2022-09-14)
4
19
  [Full Changelog](https://github.com/auth0/lock/compare/v11.33.3...v11.34.0)
5
20
 
package/README.md CHANGED
@@ -25,7 +25,7 @@ From CDN
25
25
 
26
26
  ```html
27
27
  <!-- Latest patch release (recommended for production) -->
28
- <script src="https://cdn.auth0.com/js/lock/11.34.0/lock.min.js"></script>
28
+ <script src="https://cdn.auth0.com/js/lock/11.34.2/lock.min.js"></script>
29
29
  ```
30
30
 
31
31
  From [npm](https://npmjs.org)
@@ -490,7 +490,7 @@ Extra input fields can be added to the sign up screen with the `additionalSignUp
490
490
 
491
491
  Additional sign up fields are rendered below the default fields in the order they are provided.
492
492
 
493
- :warning: **Note**: From `11.34.0` onwards, all HTML tags are stripped from user input into custom signup fields.
493
+ :warning: **Note**: From `11.34.2` onwards, all HTML tags are stripped from user input into custom signup fields.
494
494
 
495
495
  ##### Text field
496
496
 
@@ -165,7 +165,7 @@ var EmailSentConfirmation = function (_React$Component3) {
165
165
 
166
166
  var lock = this.props.lock;
167
167
 
168
- var _closeHandler = l.ui.closable(lock) ? this.handleClose : undefined;
168
+ var closeHandler = l.ui.closable(lock) ? this.handleClose.bind(this) : undefined;
169
169
  var labels = {
170
170
  failed: i18n.str(lock, 'failedLabel'),
171
171
  resend: i18n.str(lock, 'resendLabel'),
@@ -181,9 +181,7 @@ var EmailSentConfirmation = function (_React$Component3) {
181
181
  backHandler: function backHandler() {
182
182
  return _this4.handleBack();
183
183
  },
184
- closeHandler: function closeHandler() {
185
- return _closeHandler();
186
- }
184
+ closeHandler: closeHandler
187
185
  },
188
186
  _react2.default.createElement(
189
187
  'p',
@@ -176,5 +176,5 @@ function trimAuthParams() {
176
176
  }
177
177
 
178
178
  function getVersion() {
179
- return '11.34.0';
179
+ return '11.34.2';
180
180
  }
@@ -153,7 +153,7 @@ var SignUp = function (_Screen) {
153
153
  };
154
154
 
155
155
  SignUp.prototype.renderAuxiliaryPane = function renderAuxiliaryPane(lock) {
156
- return (0, _signed_in_confirmation.renderSignedInConfirmation)(lock) || (0, _signed_up_confirmation.renderSignedUpConfirmation)(lock) || (0, _index2.renderOptionSelection)(lock);
156
+ return (0, _signed_up_confirmation.renderSignedUpConfirmation)(lock) || (0, _signed_in_confirmation.renderSignedInConfirmation)(lock) || (0, _index2.renderOptionSelection)(lock);
157
157
  };
158
158
 
159
159
  SignUp.prototype.renderTabs = function renderTabs() {
package/lib/i18n.js CHANGED
@@ -125,7 +125,7 @@ function assertLanguage(m, language, base) {
125
125
  function syncLang(m, language, _cb) {
126
126
  (0, _cdn_utils.load)({
127
127
  method: 'registerLanguageDictionary',
128
- url: l.languageBaseUrl(m) + '/js/lock/' + '11.34.0' + '/' + language + '.js',
128
+ url: l.languageBaseUrl(m) + '/js/lock/' + '11.34.2' + '/' + language + '.js',
129
129
  check: function check(str) {
130
130
  return str && str === language;
131
131
  },
package/lib/lock.js CHANGED
@@ -42,7 +42,7 @@ var Auth0Lock = function (_Core) {
42
42
 
43
43
 
44
44
  exports.default = Auth0Lock;
45
- Auth0Lock.version = '11.34.0';
45
+ Auth0Lock.version = '11.34.2';
46
46
 
47
47
  // TODO: should we have different telemetry for classic/passwordless?
48
48
  // TODO: should we set telemetry info before each request?
@@ -41,4 +41,4 @@ var Auth0LockPasswordless = function (_Core) {
41
41
  exports.default = Auth0LockPasswordless;
42
42
 
43
43
 
44
- Auth0LockPasswordless.version = '11.34.0';
44
+ Auth0LockPasswordless.version = '11.34.2';
@@ -154,6 +154,8 @@ var CaptchaInput = function (_React$Component) {
154
154
  placeholder: placeholder,
155
155
  autoComplete: 'off',
156
156
  autoCapitalize: 'off',
157
+ autoCorrect: 'off',
158
+ spellCheck: 'false',
157
159
  onChange: this.handleOnChange.bind(this),
158
160
  onFocus: this.handleFocus.bind(this),
159
161
  onBlur: this.handleBlur.bind(this),
@@ -108,6 +108,8 @@ var EmailInput = function (_React$Component) {
108
108
  placeholder: 'yours@example.com',
109
109
  autoComplete: autoComplete ? 'on' : 'off',
110
110
  autoCapitalize: 'off',
111
+ autoCorrect: 'off',
112
+ spellCheck: 'false',
111
113
  onChange: this.handleOnChange.bind(this),
112
114
  onFocus: this.handleFocus.bind(this),
113
115
  onBlur: this.handleBlur.bind(this),
@@ -77,6 +77,8 @@ var MFACodeInput = function (_React$Component) {
77
77
  className: 'auth0-lock-input',
78
78
  autoComplete: 'off',
79
79
  autoCapitalize: 'off',
80
+ autoCorrect: 'off',
81
+ spellCheck: 'false',
80
82
  onChange: this.handleOnChange.bind(this),
81
83
  onFocus: this.handleFocus.bind(this),
82
84
  onBlur: this.handleBlur.bind(this),
@@ -121,6 +121,8 @@ var PasswordInput = function (_React$Component) {
121
121
  className: 'auth0-lock-input',
122
122
  autoComplete: allowPasswordAutocomplete ? 'on' : 'off',
123
123
  autoCapitalize: 'off',
124
+ autoCorrect: 'off',
125
+ spellCheck: 'false',
124
126
  onChange: this.handleOnChange.bind(this),
125
127
  onFocus: this.handleFocus.bind(this),
126
128
  onBlur: this.handleBlur.bind(this),
@@ -90,6 +90,8 @@ var PhoneNumberInput = function (_React$Component) {
90
90
  name: 'phoneNumber',
91
91
  className: 'auth0-lock-input auth0-lock-input-number',
92
92
  autoComplete: 'off',
93
+ autoCorrect: 'off',
94
+ spellCheck: 'false',
93
95
  onFocus: this.handleFocus.bind(this),
94
96
  onBlur: this.handleBlur.bind(this),
95
97
  'aria-label': 'Telephone number',
@@ -99,7 +99,7 @@ var UsernameInput = function (_React$Component) {
99
99
  placeholder: 'username',
100
100
  autoComplete: autoComplete ? 'on' : 'off',
101
101
  autoCapitalize: 'off',
102
- spellCheck: 'off',
102
+ spellCheck: 'false',
103
103
  autoCorrect: 'off',
104
104
  onChange: this.handleOnChange.bind(this),
105
105
  onFocus: this.handleFocus.bind(this),
@@ -104,6 +104,8 @@ var VcodeInput = function (_React$Component) {
104
104
  className: 'auth0-lock-input auth0-lock-input-code',
105
105
  autoComplete: 'off',
106
106
  autoCapitalize: 'off',
107
+ autoCorrect: 'off',
108
+ spellCheck: 'false',
107
109
  onFocus: this.handleFocus.bind(this),
108
110
  onBlur: this.handleBlur.bind(this),
109
111
  'aria-label': 'vcode',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "11.34.0",
3
+ "version": "11.34.2",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",