@wral/profile-image-editor 0.0.2 → 0.0.4
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/define.standalone.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
|
@@ -15368,7 +15368,7 @@ class Yi extends Yt {
|
|
|
15368
15368
|
<img src="${this.exportDataUrl}"></img>
|
|
15369
15369
|
<h3>Your new profile picture!</h3>
|
|
15370
15370
|
<div class="preview-text">
|
|
15371
|
-
If your profile picture looks good, click Save. <br
|
|
15371
|
+
If your profile picture looks good, click Save. <br/>
|
|
15372
15372
|
Otherwise, go back and continue editing.
|
|
15373
15373
|
</div>
|
|
15374
15374
|
<div class="confirmation">
|
|
@@ -15715,10 +15715,10 @@ class Yi extends Yt {
|
|
|
15715
15715
|
_clamp(a, f, c) {
|
|
15716
15716
|
return Math.min(c, Math.max(f, a));
|
|
15717
15717
|
}
|
|
15718
|
-
_useExported() {
|
|
15719
|
-
console.log("new image URL:", this.exportDataUrl), ps("profile_picture", this.exportDataUrl), window.dispatchEvent(new CustomEvent("wral:profile-picture-saved", {
|
|
15718
|
+
async _useExported() {
|
|
15719
|
+
console.log("new image URL:", this.exportDataUrl), await ps("profile_picture", this.exportDataUrl), window.dispatchEvent(new CustomEvent("wral:profile-picture-saved", {
|
|
15720
15720
|
detail: { src: this.exportDataUrl }
|
|
15721
|
-
}));
|
|
15721
|
+
})), this._closeEditor();
|
|
15722
15722
|
}
|
|
15723
15723
|
}
|
|
15724
15724
|
customElements.define("wral-profile-image-editor", Yi);
|
package/dist/index.mjs
CHANGED
|
@@ -15341,7 +15341,7 @@ class Ui extends Tt {
|
|
|
15341
15341
|
<img src="${this.exportDataUrl}"></img>
|
|
15342
15342
|
<h3>Your new profile picture!</h3>
|
|
15343
15343
|
<div class="preview-text">
|
|
15344
|
-
If your profile picture looks good, click Save. <br
|
|
15344
|
+
If your profile picture looks good, click Save. <br/>
|
|
15345
15345
|
Otherwise, go back and continue editing.
|
|
15346
15346
|
</div>
|
|
15347
15347
|
<div class="confirmation">
|
|
@@ -15688,10 +15688,10 @@ class Ui extends Tt {
|
|
|
15688
15688
|
_clamp(N, W, se) {
|
|
15689
15689
|
return Math.min(se, Math.max(W, N));
|
|
15690
15690
|
}
|
|
15691
|
-
_useExported() {
|
|
15692
|
-
console.log("new image URL:", this.exportDataUrl), zi("profile_picture", this.exportDataUrl), window.dispatchEvent(new CustomEvent("wral:profile-picture-saved", {
|
|
15691
|
+
async _useExported() {
|
|
15692
|
+
console.log("new image URL:", this.exportDataUrl), await zi("profile_picture", this.exportDataUrl), window.dispatchEvent(new CustomEvent("wral:profile-picture-saved", {
|
|
15693
15693
|
detail: { src: this.exportDataUrl }
|
|
15694
|
-
}));
|
|
15694
|
+
})), this._closeEditor();
|
|
15695
15695
|
}
|
|
15696
15696
|
}
|
|
15697
15697
|
customElements.define("wral-profile-image-editor", Ui);
|
package/package.json
CHANGED