@dreamcommerce/aurora 2.8.1-25 → 2.8.1-26

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.
@@ -25,6 +25,7 @@ const XhrImagePicker = ({ id, url, name, onUploaded, initialFile, errors: initia
25
25
  const pendingRequestRef = React__default['default'].useRef();
26
26
  React.useEffect(() => {
27
27
  initialErrors && setErrors(initialErrors);
28
+ console.log('XhrImagePicker', initialErrors);
28
29
  }, [initialErrors]);
29
30
  const handleControlChange = async (fileList) => {
30
31
  onChange === null || onChange === void 0 ? void 0 : onChange(fileList);
@@ -46,7 +47,6 @@ const XhrImagePicker = ({ id, url, name, onUploaded, initialFile, errors: initia
46
47
  React.useEffect(() => {
47
48
  return () => { var _a; return (_a = pendingRequestRef.current) === null || _a === void 0 ? void 0 : _a.call(pendingRequestRef); };
48
49
  }, []);
49
- console.log('XhrImagePicker', errors);
50
50
  return (React__default['default'].createElement(index['default'], { id: id, name: name, onChange: handleControlChange, onError: onError, errors: errors, allowedExtensions: allowedExtensions, initialFile: initialFile, onImageSizeUpdated: onImageSizeUpdated }));
51
51
  };
52
52
 
@@ -17,6 +17,7 @@ const XhrImagePicker = ({ id, url, name, onUploaded, initialFile, errors: initia
17
17
  const pendingRequestRef = React.useRef();
18
18
  useEffect(() => {
19
19
  initialErrors && setErrors(initialErrors);
20
+ console.log('XhrImagePicker', initialErrors);
20
21
  }, [initialErrors]);
21
22
  const handleControlChange = async (fileList) => {
22
23
  onChange === null || onChange === void 0 ? void 0 : onChange(fileList);
@@ -38,7 +39,6 @@ const XhrImagePicker = ({ id, url, name, onUploaded, initialFile, errors: initia
38
39
  useEffect(() => {
39
40
  return () => { var _a; return (_a = pendingRequestRef.current) === null || _a === void 0 ? void 0 : _a.call(pendingRequestRef); };
40
41
  }, []);
41
- console.log('XhrImagePicker', errors);
42
42
  return (React.createElement(ImagePicker, { id: id, name: name, onChange: handleControlChange, onError: onError, errors: errors, allowedExtensions: allowedExtensions, initialFile: initialFile, onImageSizeUpdated: onImageSizeUpdated }));
43
43
  };
44
44
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "2.8.1-25",
5
+ "version": "2.8.1-26",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",