@social-mail/social-mail-client 1.2.284 → 1.2.286
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 +19 -17
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +19 -17
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +19 -17
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/WebSitePageEditor.tsx +25 -22
|
@@ -49711,6 +49711,25 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
49711
49711
|
}
|
|
49712
49712
|
setStylerSheet() {
|
|
49713
49713
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49714
|
+
for (const e of Array.from(this.htmlDocument.querySelectorAll("inject"))) {
|
|
49715
|
+
let src = e.getAttribute("src");
|
|
49716
|
+
if (src.startsWith("/")) {
|
|
49717
|
+
src = src.substring(1);
|
|
49718
|
+
} else {}
|
|
49719
|
+
const file = yield this.cloudFileService.children(this.folder.appFileID, src).firstOrDefault();
|
|
49720
|
+
const text = yield FetchBuilder.get(file.downloadUrl).responseAsText();
|
|
49721
|
+
const parser = new DOMParser();
|
|
49722
|
+
const dom = parser.parseFromString(text, "text/html");
|
|
49723
|
+
const children = Array.from(dom.body.children);
|
|
49724
|
+
for (const iterator of Array.from(e.children)) {
|
|
49725
|
+
iterator.remove();
|
|
49726
|
+
}
|
|
49727
|
+
for (const iterator of children) {
|
|
49728
|
+
iterator.setAttribute("contentEditable", "false");
|
|
49729
|
+
iterator.remove();
|
|
49730
|
+
e.appendChild(iterator);
|
|
49731
|
+
}
|
|
49732
|
+
}
|
|
49714
49733
|
const stylerCSS = yield this.createFile("styler.css", StylerSet.instance.toString());
|
|
49715
49734
|
yield this.addStyleSheet(stylerCSS);
|
|
49716
49735
|
let vars = yield this.cloudFileService.children(this.folder.appFileID, "styles/vars.css").firstOrDefault();
|
|
@@ -49730,23 +49749,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
49730
49749
|
this.htmlDocument.head.appendChild(script);
|
|
49731
49750
|
}
|
|
49732
49751
|
script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.54/dist/components.webpack.js");
|
|
49733
|
-
for (const e of Array.from(this.htmlDocument.querySelectorAll("inject"))) {
|
|
49734
|
-
let src = e.getAttribute("src");
|
|
49735
|
-
if (src.startsWith("/")) {
|
|
49736
|
-
src = src.substring(1);
|
|
49737
|
-
} else {}
|
|
49738
|
-
const file = yield this.cloudFileService.children(this.folder.appFileID, src).firstOrDefault();
|
|
49739
|
-
const text = yield FetchBuilder.get(file.downloadUrl).responseAsText();
|
|
49740
|
-
const parser = new DOMParser();
|
|
49741
|
-
const dom = parser.parseFromString(text, "text/html");
|
|
49742
|
-
const children = Array.from(dom.body.children);
|
|
49743
|
-
e.innerHTML = "";
|
|
49744
|
-
for (const iterator of children) {
|
|
49745
|
-
iterator.setAttribute("contentEditable", "false");
|
|
49746
|
-
iterator.remove();
|
|
49747
|
-
e.appendChild(iterator);
|
|
49748
|
-
}
|
|
49749
|
-
}
|
|
49750
49752
|
});
|
|
49751
49753
|
}
|
|
49752
49754
|
addStyleSheet(file) {
|