@jobber/components 4.60.11 → 4.60.12

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.
@@ -49,9 +49,7 @@ const Form = React.forwardRef(function InternalForm({ onSubmit, children, onStat
49
49
  function errorHandler(errs) {
50
50
  const firstErrName = Object.keys(errs)[0];
51
51
  const element = document.querySelector(`[name="${firstErrName}"]`);
52
- if (typeof element != undefined) {
53
- element === null || element === void 0 ? void 0 : element.focus();
54
- }
52
+ element === null || element === void 0 ? void 0 : element.focus();
55
53
  }
56
54
  });
57
55
 
@@ -6,7 +6,7 @@ var tslib_es6 = require('../tslib.es6-5b8768b7.js');
6
6
  var React = require('react');
7
7
  var styleInject_es = require('../style-inject.es-9d2f5f4e.js');
8
8
  var Avatar = require('../Avatar-1aa30ee1.js');
9
- var InputFile = require('../InputFile-25c3369b.js');
9
+ var InputFile = require('../InputFile-cf3d292d.js');
10
10
  var ProgressBar = require('../ProgressBar-5dfc1885.js');
11
11
  var Button = require('../Button-db6114a6.js');
12
12
  require('classnames');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var InputFile = require('../InputFile-25c3369b.js');
5
+ var InputFile = require('../InputFile-cf3d292d.js');
6
6
  require('../tslib.es6-5b8768b7.js');
7
7
  require('react');
8
8
  require('classnames');
@@ -54,6 +54,7 @@ function InputFile({ variation = "dropzone", size = "base", buttonLabel: provide
54
54
  const { url, key = uuid.v1(), fields = {}, httpMethod = "POST", } = yield getUploadParams(file);
55
55
  const fileUpload = getFileUpload(file, key, url);
56
56
  onUploadStart && onUploadStart(Object.assign({}, fileUpload));
57
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
57
58
  const handleUploadProgress = (progressEvent) => {
58
59
  onUploadProgress &&
59
60
  onUploadProgress(Object.assign(Object.assign({}, fileUpload), { progress: progressEvent.loaded / progressEvent.total }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.60.11",
3
+ "version": "4.60.12",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -83,5 +83,5 @@
83
83
  "> 1%",
84
84
  "IE 10"
85
85
  ],
86
- "gitHead": "6bc8c83c666af040b449d6bd5dd83b0a2a76da21"
86
+ "gitHead": "9b37922254f313d9495d324201536dda7a1f46f0"
87
87
  }