@wral/profile-image-editor 0.0.2 → 0.0.3

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.
@@ -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">
@@ -15718,7 +15718,7 @@ class Yi extends Yt {
15718
15718
  _useExported() {
15719
15719
  console.log("new image URL:", this.exportDataUrl), 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">
@@ -15691,7 +15691,7 @@ class Ui extends Tt {
15691
15691
  _useExported() {
15692
15692
  console.log("new image URL:", this.exportDataUrl), 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wral/profile-image-editor",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "description": "Lit web component for showing and editing a user's profile picture.",
6
6
  "author": "Noah Rojahn <nrojahn@wral.com>",