@bigbinary/neeto-image-uploader-frontend 1.3.2 → 1.4.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.
- package/dist/index.cjs.js +53 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +53 -25
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -17954,7 +17954,7 @@ var Modal = function Modal(_ref) {
|
|
|
17954
17954
|
cov_2my1w2udyi().f[3]++;
|
|
17955
17955
|
cov_2my1w2udyi().s[14]++;
|
|
17956
17956
|
onUploadComplete({
|
|
17957
|
-
url: image.
|
|
17957
|
+
url: image.blobUrl,
|
|
17958
17958
|
signedId: image.signedId
|
|
17959
17959
|
});
|
|
17960
17960
|
},
|
|
@@ -18427,7 +18427,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
18427
18427
|
|
|
18428
18428
|
function cov_1avu3clziw() {
|
|
18429
18429
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/index.jsx";
|
|
18430
|
-
var hash = "
|
|
18430
|
+
var hash = "5d7f552e0d851142d8649f86544e6c5b0d4b8ae3";
|
|
18431
18431
|
var global = new Function("return this")();
|
|
18432
18432
|
var gcv = "__coverage__";
|
|
18433
18433
|
var coverageData = {
|
|
@@ -18670,7 +18670,7 @@ function cov_1avu3clziw() {
|
|
|
18670
18670
|
},
|
|
18671
18671
|
end: {
|
|
18672
18672
|
line: 52,
|
|
18673
|
-
column:
|
|
18673
|
+
column: 20
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
18676
|
"24": {
|
|
@@ -18769,18 +18769,18 @@ function cov_1avu3clziw() {
|
|
|
18769
18769
|
column: 4
|
|
18770
18770
|
},
|
|
18771
18771
|
end: {
|
|
18772
|
-
line:
|
|
18772
|
+
line: 88,
|
|
18773
18773
|
column: 7
|
|
18774
18774
|
}
|
|
18775
18775
|
},
|
|
18776
18776
|
"34": {
|
|
18777
18777
|
start: {
|
|
18778
|
-
line:
|
|
18779
|
-
column:
|
|
18778
|
+
line: 86,
|
|
18779
|
+
column: 23
|
|
18780
18780
|
},
|
|
18781
18781
|
end: {
|
|
18782
|
-
line:
|
|
18783
|
-
column:
|
|
18782
|
+
line: 86,
|
|
18783
|
+
column: 38
|
|
18784
18784
|
}
|
|
18785
18785
|
},
|
|
18786
18786
|
"35": {
|
|
@@ -19035,6 +19035,30 @@ function cov_1avu3clziw() {
|
|
|
19035
19035
|
},
|
|
19036
19036
|
"7": {
|
|
19037
19037
|
name: "(anonymous_7)",
|
|
19038
|
+
decl: {
|
|
19039
|
+
start: {
|
|
19040
|
+
line: 86,
|
|
19041
|
+
column: 17
|
|
19042
|
+
},
|
|
19043
|
+
end: {
|
|
19044
|
+
line: 86,
|
|
19045
|
+
column: 18
|
|
19046
|
+
}
|
|
19047
|
+
},
|
|
19048
|
+
loc: {
|
|
19049
|
+
start: {
|
|
19050
|
+
line: 86,
|
|
19051
|
+
column: 23
|
|
19052
|
+
},
|
|
19053
|
+
end: {
|
|
19054
|
+
line: 86,
|
|
19055
|
+
column: 38
|
|
19056
|
+
}
|
|
19057
|
+
},
|
|
19058
|
+
line: 86
|
|
19059
|
+
},
|
|
19060
|
+
"8": {
|
|
19061
|
+
name: "(anonymous_8)",
|
|
19038
19062
|
decl: {
|
|
19039
19063
|
start: {
|
|
19040
19064
|
line: 129,
|
|
@@ -19057,8 +19081,8 @@ function cov_1avu3clziw() {
|
|
|
19057
19081
|
},
|
|
19058
19082
|
line: 129
|
|
19059
19083
|
},
|
|
19060
|
-
"
|
|
19061
|
-
name: "(
|
|
19084
|
+
"9": {
|
|
19085
|
+
name: "(anonymous_9)",
|
|
19062
19086
|
decl: {
|
|
19063
19087
|
start: {
|
|
19064
19088
|
line: 160,
|
|
@@ -19081,8 +19105,8 @@ function cov_1avu3clziw() {
|
|
|
19081
19105
|
},
|
|
19082
19106
|
line: 160
|
|
19083
19107
|
},
|
|
19084
|
-
"
|
|
19085
|
-
name: "(
|
|
19108
|
+
"10": {
|
|
19109
|
+
name: "(anonymous_10)",
|
|
19086
19110
|
decl: {
|
|
19087
19111
|
start: {
|
|
19088
19112
|
line: 163,
|
|
@@ -19105,8 +19129,8 @@ function cov_1avu3clziw() {
|
|
|
19105
19129
|
},
|
|
19106
19130
|
line: 163
|
|
19107
19131
|
},
|
|
19108
|
-
"
|
|
19109
|
-
name: "(
|
|
19132
|
+
"11": {
|
|
19133
|
+
name: "(anonymous_11)",
|
|
19110
19134
|
decl: {
|
|
19111
19135
|
start: {
|
|
19112
19136
|
line: 181,
|
|
@@ -19467,7 +19491,8 @@ function cov_1avu3clziw() {
|
|
|
19467
19491
|
"7": 0,
|
|
19468
19492
|
"8": 0,
|
|
19469
19493
|
"9": 0,
|
|
19470
|
-
"10": 0
|
|
19494
|
+
"10": 0,
|
|
19495
|
+
"11": 0
|
|
19471
19496
|
},
|
|
19472
19497
|
b: {
|
|
19473
19498
|
"0": [0],
|
|
@@ -19481,7 +19506,7 @@ function cov_1avu3clziw() {
|
|
|
19481
19506
|
"8": [0, 0]
|
|
19482
19507
|
},
|
|
19483
19508
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
19484
|
-
hash: "
|
|
19509
|
+
hash: "5d7f552e0d851142d8649f86544e6c5b0d4b8ae3"
|
|
19485
19510
|
};
|
|
19486
19511
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
19487
19512
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -19561,7 +19586,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19561
19586
|
}));
|
|
19562
19587
|
cov_1avu3clziw().s[17]++;
|
|
19563
19588
|
onChange({
|
|
19564
|
-
url: attachedImage.
|
|
19589
|
+
url: attachedImage.blobUrl,
|
|
19565
19590
|
signedId: attachedImage.signedId
|
|
19566
19591
|
});
|
|
19567
19592
|
cov_1avu3clziw().s[18]++;
|
|
@@ -19577,7 +19602,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19577
19602
|
cov_1avu3clziw().s[22]++;
|
|
19578
19603
|
onChange(image);
|
|
19579
19604
|
cov_1avu3clziw().s[23]++;
|
|
19580
|
-
setSignedId(
|
|
19605
|
+
setSignedId("");
|
|
19581
19606
|
cov_1avu3clziw().s[24]++;
|
|
19582
19607
|
setIsEditorOpen(false);
|
|
19583
19608
|
};
|
|
@@ -19633,11 +19658,14 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19633
19658
|
cov_1avu3clziw().s[33]++;
|
|
19634
19659
|
updateBlob(payload, {
|
|
19635
19660
|
onSuccess: handleSuccess,
|
|
19661
|
+
onSettled: function onSettled() {
|
|
19662
|
+
cov_1avu3clziw().f[7]++;
|
|
19663
|
+
cov_1avu3clziw().s[34]++;
|
|
19664
|
+
return setSignedId("");
|
|
19665
|
+
},
|
|
19636
19666
|
onError: Toastr.error
|
|
19637
19667
|
});
|
|
19638
|
-
|
|
19639
|
-
setIsEditorOpen(false);
|
|
19640
|
-
case 7:
|
|
19668
|
+
case 5:
|
|
19641
19669
|
case "end":
|
|
19642
19670
|
return _context.stop();
|
|
19643
19671
|
}
|
|
@@ -19691,7 +19719,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19691
19719
|
style: "link",
|
|
19692
19720
|
onClick: function onClick() {
|
|
19693
19721
|
var _inputRef$current;
|
|
19694
|
-
cov_1avu3clziw().f[
|
|
19722
|
+
cov_1avu3clziw().f[8]++;
|
|
19695
19723
|
cov_1avu3clziw().s[39]++;
|
|
19696
19724
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
19697
19725
|
}
|
|
@@ -19719,13 +19747,13 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19719
19747
|
isOpen: isEditorOpen,
|
|
19720
19748
|
size: "large",
|
|
19721
19749
|
onClose: function onClose() {
|
|
19722
|
-
cov_1avu3clziw().f[
|
|
19750
|
+
cov_1avu3clziw().f[9]++;
|
|
19723
19751
|
cov_1avu3clziw().s[40]++;
|
|
19724
19752
|
return setIsEditorOpen(false);
|
|
19725
19753
|
}
|
|
19726
19754
|
}, /*#__PURE__*/React.createElement(ImageEditor, {
|
|
19727
19755
|
handleReset: function handleReset() {
|
|
19728
|
-
cov_1avu3clziw().f[
|
|
19756
|
+
cov_1avu3clziw().f[10]++;
|
|
19729
19757
|
cov_1avu3clziw().s[41]++;
|
|
19730
19758
|
return setIsEditorOpen(false);
|
|
19731
19759
|
},
|
|
@@ -19739,7 +19767,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
19739
19767
|
})), /*#__PURE__*/React.createElement(Modal, {
|
|
19740
19768
|
isOpen: isAssetLibraryOpen,
|
|
19741
19769
|
onClose: function onClose() {
|
|
19742
|
-
cov_1avu3clziw().f[
|
|
19770
|
+
cov_1avu3clziw().f[11]++;
|
|
19743
19771
|
cov_1avu3clziw().s[42]++;
|
|
19744
19772
|
return setIsAssetLibraryOpen(false);
|
|
19745
19773
|
},
|