auth0-lock 14.0.0 → 14.2.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.
@@ -46,6 +46,11 @@ var CaptchaPane = exports.default = /*#__PURE__*/function (_React$Component) {
46
46
  var captcha = (0, _captcha2.getCaptchaConfig)(lock, flow);
47
47
  var value = (0, _index3.getFieldValue)(lock, 'captcha');
48
48
  var isValid = !(0, _index3.isFieldVisiblyInvalid)(lock, 'captcha');
49
+
50
+ // If no captcha config, don't render anything
51
+ if (!captcha) {
52
+ return null;
53
+ }
49
54
  var provider = captcha.get('provider');
50
55
  if ((0, _third_party_captcha.isThirdPartyCaptcha)(provider)) {
51
56
  function handleChange(value) {
@@ -84,7 +84,8 @@ var SocialButtonsPane = exports.default = /*#__PURE__*/function (_React$Componen
84
84
  className: "auth0-loading"
85
85
  }));
86
86
  return /*#__PURE__*/_react.default.createElement("div", {
87
- className: "auth-lock-social-buttons-pane"
87
+ className: "auth-lock-social-buttons-pane",
88
+ tabIndex: 0
88
89
  }, header, /*#__PURE__*/_react.default.createElement("div", {
89
90
  className: "auth0-lock-social-buttons-container"
90
91
  }, buttons), loading);
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.0.0", "/").concat(language, ".js"),
93
+ url: "".concat(l.languageBaseUrl(m), "/js/lock/").concat("14.2.0", "/").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.0.0";
39
+ Auth0Lock.version = "14.2.0";
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.0.0";
39
+ Auth0LockPasswordless.version = "14.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-lock",
3
- "version": "14.0.0",
3
+ "version": "14.2.0",
4
4
  "description": "Auth0 Lock",
5
5
  "author": "Auth0 <support@auth0.com> (http://auth0.com)",
6
6
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  "@babel/preset-env": "^7.0.0",
63
63
  "@babel/preset-react": "^7.0.0",
64
64
  "@cfaester/enzyme-adapter-react-18": "^0.8.0",
65
- "@google-cloud/translate": "^6.0.2",
65
+ "@google-cloud/translate": "^9.1.0",
66
66
  "babel-jest": "^29.3.1",
67
67
  "babel-loader": "8.4.1",
68
68
  "babel-plugin-stylus-compiler": "^1.4.0",
@@ -81,7 +81,6 @@
81
81
  "eslint-config-prettier": "^8.8.0",
82
82
  "eslint-plugin-react": "^7.32.2",
83
83
  "esm": "^3.2.25",
84
- "events": "^3.3.0",
85
84
  "expect.js": "^0.3.1",
86
85
  "flat": "^5.0.2",
87
86
  "glob": "^7.1.7",
@@ -106,7 +105,6 @@
106
105
  "karma-mocha-reporter": "^2.2.5",
107
106
  "lint-staged": "^13.2.3",
108
107
  "mocha": "^11.5.0",
109
- "node-es-module-loader": "^0.3.8",
110
108
  "prettier": "^2.4.1",
111
109
  "puppeteer": "^24.9.0",
112
110
  "react-test-renderer": "^18.2.0",
@@ -126,6 +124,7 @@
126
124
  "blueimp-md5": "^2.19.0",
127
125
  "classnames": "^2.3.2",
128
126
  "dompurify": "^3.2.5",
127
+ "events": "^3.3.0",
129
128
  "immutable": "^3.7.6",
130
129
  "jsonp": "^0.2.1",
131
130
  "password-sheriff": "^1.1.1",
@@ -188,5 +187,8 @@
188
187
  "*.{js,jsx,json}": [
189
188
  "prettier --write"
190
189
  ]
190
+ },
191
+ "optionalDependencies": {
192
+ "fsevents": "^2.3.3"
191
193
  }
192
194
  }
@@ -1,40 +0,0 @@
1
- name: Semgrep
2
-
3
- on:
4
- merge_group:
5
- pull_request:
6
- types:
7
- - opened
8
- - synchronize
9
- push:
10
- branches:
11
- - master
12
- schedule:
13
- - cron: '30 0 1,15 * *'
14
-
15
- permissions:
16
- contents: read
17
-
18
- concurrency:
19
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20
- cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
21
-
22
- jobs:
23
- run:
24
- name: Check for Vulnerabilities
25
- runs-on: ubuntu-latest
26
-
27
- container:
28
- image: returntocorp/semgrep
29
-
30
- steps:
31
- - if: github.actor == 'dependabot[bot]' || github.event_name == 'merge_group'
32
- run: exit 0 # Skip unnecessary test runs for dependabot and merge queues. Artifically flag as successful, as this is a required check for branch protection.
33
-
34
- - uses: actions/checkout@v4
35
- with:
36
- ref: ${{ github.event.pull_request.head.sha || github.ref }}
37
-
38
- - run: semgrep ci
39
- env:
40
- SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}