@wral/profile-image-editor 0.0.10 → 0.0.11

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.
@@ -928,6 +928,11 @@ const mr = Ki`
928
928
  height: 48px;
929
929
  }
930
930
  }
931
+
932
+ .error {
933
+ align-self: center;
934
+ color: red;
935
+ }
931
936
  `, vr = yt`
932
937
  <svg width="15" height="16"
933
938
  viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg"
@@ -15578,6 +15583,11 @@ class _i extends Vt {
15578
15583
  </div>
15579
15584
  </div>
15580
15585
 
15586
+ ${this.errorMessage ? yt`
15587
+ <div class="error">
15588
+ ${this.errorMessage}
15589
+ </div>` : null}
15590
+
15581
15591
  <div class="controls" style="${c ? "display: none" : ""}">
15582
15592
  ${this.allowRotate ? yt`
15583
15593
  <div class="rotate-controls">
@@ -15769,7 +15779,7 @@ class _i extends Vt {
15769
15779
  mime: a.type
15770
15780
  };
15771
15781
  } catch (f) {
15772
- this._lastFile = null, this.rotation = 0, this.sourceInfo = null, this.exportDataUrl = null, this._setCropVisibility(!1), this.errorMessage = f?.message ?? String(f);
15782
+ console.error(f), this._lastFile = null, this.rotation = 0, this.sourceInfo = null, this.exportDataUrl = null, this._setCropVisibility(!1), this.errorMessage = f?.message ?? String(f);
15773
15783
  } finally {
15774
15784
  this.busy = !1;
15775
15785
  }