@bigbinary/neeto-image-uploader-frontend 1.3.1 → 1.3.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/dist/index.js CHANGED
@@ -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 = "dfb1bddf6ad2d106cc08375435d345426efb0acc";
18430
+ var hash = "73a1be321949a6ae2a12973342243fe3dde7d66e";
18431
18431
  var global = new Function("return this")();
18432
18432
  var gcv = "__coverage__";
18433
18433
  var coverageData = {
@@ -18439,7 +18439,7 @@ function cov_1avu3clziw() {
18439
18439
  column: 22
18440
18440
  },
18441
18441
  end: {
18442
- line: 183,
18442
+ line: 186,
18443
18443
  column: 1
18444
18444
  }
18445
18445
  },
@@ -18819,7 +18819,7 @@ function cov_1avu3clziw() {
18819
18819
  column: 2
18820
18820
  },
18821
18821
  end: {
18822
- line: 182,
18822
+ line: 185,
18823
18823
  column: 4
18824
18824
  }
18825
18825
  },
@@ -18835,31 +18835,31 @@ function cov_1avu3clziw() {
18835
18835
  },
18836
18836
  "40": {
18837
18837
  start: {
18838
- line: 157,
18838
+ line: 160,
18839
18839
  column: 27
18840
18840
  },
18841
18841
  end: {
18842
- line: 157,
18842
+ line: 160,
18843
18843
  column: 49
18844
18844
  }
18845
18845
  },
18846
18846
  "41": {
18847
18847
  start: {
18848
- line: 160,
18848
+ line: 163,
18849
18849
  column: 33
18850
18850
  },
18851
18851
  end: {
18852
- line: 160,
18852
+ line: 163,
18853
18853
  column: 55
18854
18854
  }
18855
18855
  },
18856
18856
  "42": {
18857
18857
  start: {
18858
- line: 178,
18858
+ line: 181,
18859
18859
  column: 23
18860
18860
  },
18861
18861
  end: {
18862
- line: 178,
18862
+ line: 181,
18863
18863
  column: 51
18864
18864
  }
18865
18865
  }
@@ -18883,7 +18883,7 @@ function cov_1avu3clziw() {
18883
18883
  column: 76
18884
18884
  },
18885
18885
  end: {
18886
- line: 183,
18886
+ line: 186,
18887
18887
  column: 1
18888
18888
  }
18889
18889
  },
@@ -19061,73 +19061,73 @@ function cov_1avu3clziw() {
19061
19061
  name: "(anonymous_8)",
19062
19062
  decl: {
19063
19063
  start: {
19064
- line: 157,
19064
+ line: 160,
19065
19065
  column: 21
19066
19066
  },
19067
19067
  end: {
19068
- line: 157,
19068
+ line: 160,
19069
19069
  column: 22
19070
19070
  }
19071
19071
  },
19072
19072
  loc: {
19073
19073
  start: {
19074
- line: 157,
19074
+ line: 160,
19075
19075
  column: 27
19076
19076
  },
19077
19077
  end: {
19078
- line: 157,
19078
+ line: 160,
19079
19079
  column: 49
19080
19080
  }
19081
19081
  },
19082
- line: 157
19082
+ line: 160
19083
19083
  },
19084
19084
  "9": {
19085
19085
  name: "(anonymous_9)",
19086
19086
  decl: {
19087
19087
  start: {
19088
- line: 160,
19088
+ line: 163,
19089
19089
  column: 27
19090
19090
  },
19091
19091
  end: {
19092
- line: 160,
19092
+ line: 163,
19093
19093
  column: 28
19094
19094
  }
19095
19095
  },
19096
19096
  loc: {
19097
19097
  start: {
19098
- line: 160,
19098
+ line: 163,
19099
19099
  column: 33
19100
19100
  },
19101
19101
  end: {
19102
- line: 160,
19102
+ line: 163,
19103
19103
  column: 55
19104
19104
  }
19105
19105
  },
19106
- line: 160
19106
+ line: 163
19107
19107
  },
19108
19108
  "10": {
19109
19109
  name: "(anonymous_10)",
19110
19110
  decl: {
19111
19111
  start: {
19112
- line: 178,
19112
+ line: 181,
19113
19113
  column: 17
19114
19114
  },
19115
19115
  end: {
19116
- line: 178,
19116
+ line: 181,
19117
19117
  column: 18
19118
19118
  }
19119
19119
  },
19120
19120
  loc: {
19121
19121
  start: {
19122
- line: 178,
19122
+ line: 181,
19123
19123
  column: 23
19124
19124
  },
19125
19125
  end: {
19126
- line: 178,
19126
+ line: 181,
19127
19127
  column: 51
19128
19128
  }
19129
19129
  },
19130
- line: 178
19130
+ line: 181
19131
19131
  }
19132
19132
  },
19133
19133
  branchMap: {
@@ -19318,7 +19318,7 @@ function cov_1avu3clziw() {
19318
19318
  column: 7
19319
19319
  },
19320
19320
  end: {
19321
- line: 175,
19321
+ line: 178,
19322
19322
  column: 7
19323
19323
  }
19324
19324
  },
@@ -19329,16 +19329,16 @@ function cov_1avu3clziw() {
19329
19329
  column: 8
19330
19330
  },
19331
19331
  end: {
19332
- line: 168,
19332
+ line: 171,
19333
19333
  column: 14
19334
19334
  }
19335
19335
  }, {
19336
19336
  start: {
19337
- line: 170,
19337
+ line: 173,
19338
19338
  column: 8
19339
19339
  },
19340
19340
  end: {
19341
- line: 174,
19341
+ line: 177,
19342
19342
  column: 10
19343
19343
  }
19344
19344
  }],
@@ -19347,68 +19347,68 @@ function cov_1avu3clziw() {
19347
19347
  "7": {
19348
19348
  loc: {
19349
19349
  start: {
19350
- line: 147,
19351
- column: 24
19350
+ line: 145,
19351
+ column: 13
19352
19352
  },
19353
19353
  end: {
19354
- line: 147,
19355
- column: 73
19354
+ line: 154,
19355
+ column: 13
19356
19356
  }
19357
19357
  },
19358
19358
  type: "binary-expr",
19359
19359
  locations: [{
19360
19360
  start: {
19361
- line: 147,
19362
- column: 24
19361
+ line: 145,
19362
+ column: 13
19363
19363
  },
19364
19364
  end: {
19365
- line: 147,
19366
- column: 52
19365
+ line: 145,
19366
+ column: 33
19367
19367
  }
19368
19368
  }, {
19369
19369
  start: {
19370
- line: 147,
19371
- column: 56
19370
+ line: 146,
19371
+ column: 14
19372
19372
  },
19373
19373
  end: {
19374
- line: 147,
19375
- column: 73
19374
+ line: 153,
19375
+ column: 17
19376
19376
  }
19377
19377
  }],
19378
- line: 147
19378
+ line: 145
19379
19379
  },
19380
19380
  "8": {
19381
19381
  loc: {
19382
19382
  start: {
19383
- line: 164,
19383
+ line: 167,
19384
19384
  column: 16
19385
19385
  },
19386
19386
  end: {
19387
- line: 164,
19387
+ line: 167,
19388
19388
  column: 73
19389
19389
  }
19390
19390
  },
19391
19391
  type: "cond-expr",
19392
19392
  locations: [{
19393
19393
  start: {
19394
- line: 164,
19394
+ line: 167,
19395
19395
  column: 47
19396
19396
  },
19397
19397
  end: {
19398
- line: 164,
19398
+ line: 167,
19399
19399
  column: 60
19400
19400
  }
19401
19401
  }, {
19402
19402
  start: {
19403
- line: 164,
19403
+ line: 167,
19404
19404
  column: 63
19405
19405
  },
19406
19406
  end: {
19407
- line: 164,
19407
+ line: 167,
19408
19408
  column: 73
19409
19409
  }
19410
19410
  }],
19411
- line: 164
19411
+ line: 167
19412
19412
  }
19413
19413
  },
19414
19414
  s: {
@@ -19481,7 +19481,7 @@ function cov_1avu3clziw() {
19481
19481
  "8": [0, 0]
19482
19482
  },
19483
19483
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
19484
- hash: "dfb1bddf6ad2d106cc08375435d345426efb0acc"
19484
+ hash: "73a1be321949a6ae2a12973342243fe3dde7d66e"
19485
19485
  };
19486
19486
  var coverage = global[gcv] || (global[gcv] = {});
19487
19487
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -19708,14 +19708,13 @@ var ImageUploader = function ImageUploader(_ref) {
19708
19708
  label: t("imageUpload.delete"),
19709
19709
  style: "danger-text",
19710
19710
  onClick: handleDelete
19711
- }), /*#__PURE__*/React.createElement("div", {
19711
+ }), (cov_1avu3clziw().b[7][0]++, isNotEmpty(signedId)) && (cov_1avu3clziw().b[7][1]++, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
19712
19712
  className: "neeto-ui-bg-gray-300 w-px"
19713
19713
  }), /*#__PURE__*/React.createElement(Button, {
19714
- disabled: (cov_1avu3clziw().b[7][0]++, IS_DEVELOPMENT_OR_HEROKU_ENV) && (cov_1avu3clziw().b[7][1]++, isEmpty(signedId)),
19715
19714
  label: t("imageUpload.edit"),
19716
19715
  style: "link",
19717
19716
  onClick: setIsEditorOpen
19718
- })), /*#__PURE__*/React.createElement(Modal$1, {
19717
+ })))), /*#__PURE__*/React.createElement(Modal$1, {
19719
19718
  className: "niu-modal",
19720
19719
  isOpen: isEditorOpen,
19721
19720
  size: "large",