@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.
- package/dist/admin/AdminAppIndex.pack.js +6 -4
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js +4 -3
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.d.ts +1 -0
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +2 -1
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +6 -4
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +2 -2
- package/src/site-editor/editor/HtmlPageEditor.tsx +3 -1
|
@@ -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() {
|