@social-mail/social-mail-client 1.2.221 → 1.2.223

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.
@@ -47697,9 +47697,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
47697
47697
  return;
47698
47698
  }
47699
47699
  void this.ready.then(() => {
47700
+ var _a;
47700
47701
  const dom = new DOMParser();
47701
47702
  const doc = dom.parseFromString(v, "text/html");
47702
47703
  let baseElement = doc.querySelector("base");
47704
+ if ((_a = baseElement === null || baseElement === void 0 ? void 0 : baseElement.getAttribute("href")) === null || _a === void 0 ? void 0 : _a.startsWith("/api/site/")) {
47705
+ baseElement.remove();
47706
+ baseElement = null;
47707
+ }
47703
47708
  if (baseElement) {
47704
47709
  const href = baseElement.getAttribute("href");
47705
47710
  if (href !== this.baseUrl) {
@@ -48024,6 +48029,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
48024
48029
  }
48025
48030
  }
48026
48031
  }
48032
+ this.lastCommittedHtml = clone.outerHTML;
48027
48033
  this.element.dispatchEvent(new CustomEvent("htmlPageChanged", {
48028
48034
  detail: clone.outerHTML,
48029
48035
  bubbles: true
@@ -49290,10 +49296,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
49290
49296
  PageNavigator.pushPage(EditSharesPage, file);
49291
49297
  }
49292
49298
  editCode() {
49299
+ var _a;
49293
49300
  return __awaiter(this, void 0, void 0, function* () {
49294
49301
  const content = yield PageNavigator.pushPageForResult(CodeEditorPage, {
49295
49302
  file: this.selectedFile,
49296
- content: this.htmlEditor.htmlPage
49303
+ content: (_a = this.htmlEditor.lastCommittedHtml) !== null && _a !== void 0 ? _a : this.htmlEditor.htmlPage
49297
49304
  });
49298
49305
  this.pageContent = content;
49299
49306
  this.htmlEditor.htmlPage = content;