@social-mail/social-mail-client 1.2.222 → 1.2.224

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.
@@ -47701,7 +47701,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
47701
47701
  const dom = new DOMParser();
47702
47702
  const doc = dom.parseFromString(v, "text/html");
47703
47703
  let baseElement = doc.querySelector("base");
47704
- if ((_a = baseElement === null || baseElement === void 0 ? void 0 : baseElement.href) === null || _a === void 0 ? void 0 : _a.startsWith("/api/site/")) {
47704
+ if ((_a = baseElement === null || baseElement === void 0 ? void 0 : baseElement.getAttribute("href")) === null || _a === void 0 ? void 0 : _a.startsWith("/api/site/")) {
47705
47705
  baseElement.remove();
47706
47706
  baseElement = null;
47707
47707
  }
@@ -48029,6 +48029,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
48029
48029
  }
48030
48030
  }
48031
48031
  }
48032
+ this.lastCommittedHtml = clone.outerHTML;
48032
48033
  this.element.dispatchEvent(new CustomEvent("htmlPageChanged", {
48033
48034
  detail: clone.outerHTML,
48034
48035
  bubbles: true
@@ -49295,10 +49296,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
49295
49296
  PageNavigator.pushPage(EditSharesPage, file);
49296
49297
  }
49297
49298
  editCode() {
49299
+ var _a;
49298
49300
  return __awaiter(this, void 0, void 0, function* () {
49299
49301
  const content = yield PageNavigator.pushPageForResult(CodeEditorPage, {
49300
49302
  file: this.selectedFile,
49301
- content: this.htmlEditor.htmlPage
49303
+ content: (_a = this.htmlEditor.lastCommittedHtml) !== null && _a !== void 0 ? _a : this.htmlEditor.htmlPage
49302
49304
  });
49303
49305
  this.pageContent = content;
49304
49306
  this.htmlEditor.htmlPage = content;
@@ -49411,8 +49413,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
49411
49413
  });
49412
49414
  }
49413
49415
  hide() {
49414
- var _a;
49415
- this.pageContent = (_a = this.htmlEditor) === null || _a === void 0 ? void 0 : _a.htmlPage;
49416
+ var _a, _b, _c;
49417
+ this.pageContent = (_b = (_a = this.htmlEditor) === null || _a === void 0 ? void 0 : _a.lastCommittedHtml) !== null && _b !== void 0 ? _b : (_c = this.htmlEditor) === null || _c === void 0 ? void 0 : _c.htmlPage;
49416
49418
  super.hide();
49417
49419
  }
49418
49420
  show() {