@social-mail/social-mail-client 1.2.349 → 1.2.351
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 +14 -6
- 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/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +13 -0
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
- package/dist/site-editor/styler/StylerSet.js +1 -6
- package/dist/site-editor/styler/StylerSet.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +14 -6
- 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/site-editor/editor/HtmlPageEditor.tsx +14 -0
- package/src/site-editor/styler/StylerSet.ts +1 -6
|
@@ -42393,9 +42393,8 @@ System.register(["./Styler", "./properties/stylerBorder", "./properties/layouts/
|
|
|
42393
42393
|
padding: 0;
|
|
42394
42394
|
}
|
|
42395
42395
|
|
|
42396
|
-
|
|
42396
|
+
* {
|
|
42397
42397
|
box-sizing: border-box;
|
|
42398
|
-
caret-color: transparent;
|
|
42399
42398
|
}
|
|
42400
42399
|
|
|
42401
42400
|
:root{
|
|
@@ -42419,10 +42418,6 @@ System.register(["./Styler", "./properties/stylerBorder", "./properties/layouts/
|
|
|
42419
42418
|
margin: 20px;
|
|
42420
42419
|
}
|
|
42421
42420
|
|
|
42422
|
-
body[editing=true] *:not(input) {
|
|
42423
|
-
caret-color: currentColor !important;
|
|
42424
|
-
}
|
|
42425
|
-
|
|
42426
42421
|
${StylerSets.low.join("\n")}
|
|
42427
42422
|
|
|
42428
42423
|
${properties.join("\n")}
|
|
@@ -46014,16 +46009,23 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
46014
46009
|
body.removeAttribute("editing");
|
|
46015
46010
|
const all = clone.querySelectorAll("*");
|
|
46016
46011
|
const deleteAll = [];
|
|
46012
|
+
const removeAll = [];
|
|
46017
46013
|
for (let index = 0; index < all.length; index++) {
|
|
46018
46014
|
const element = all[index];
|
|
46019
46015
|
element.removeAttribute("draggable");
|
|
46020
46016
|
if (element.tagName === "INJECT") {
|
|
46021
46017
|
deleteAll.push(element);
|
|
46022
46018
|
}
|
|
46019
|
+
if (element.getAttribute("data-cursor-style") === "editing") {
|
|
46020
|
+
removeAll.push(element);
|
|
46021
|
+
}
|
|
46023
46022
|
}
|
|
46024
46023
|
for (const iterator of deleteAll) {
|
|
46025
46024
|
iterator.innerHTML = "";
|
|
46026
46025
|
}
|
|
46026
|
+
for (const iterator of removeAll) {
|
|
46027
|
+
iterator.remove();
|
|
46028
|
+
}
|
|
46027
46029
|
if (clone.querySelector(`[styler-layout="component"]`)) {
|
|
46028
46030
|
let componentScript = clone.querySelector("[styler-component-script]");
|
|
46029
46031
|
if (!componentScript) {
|
|
@@ -46166,6 +46168,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
46166
46168
|
EditorCustomElements.register(this.htmlDocument);
|
|
46167
46169
|
this.htmlDocument.body.contentEditable = "true";
|
|
46168
46170
|
this.htmlDocument.body.setAttribute("editing", "true");
|
|
46171
|
+
const cursorStyle = this.htmlDocument.createElement("style");
|
|
46172
|
+
cursorStyle.textContent = `* {
|
|
46173
|
+
caret-color: currentColor !important;
|
|
46174
|
+
}`;
|
|
46175
|
+
cursorStyle.setAttribute("data-cursor-style", "editing");
|
|
46176
|
+
this.htmlDocument.head.append(cursorStyle);
|
|
46169
46177
|
setTimeout(() => {
|
|
46170
46178
|
this.app.runAsync(() => __awaiter(this, void 0, void 0, function* () {
|
|
46171
46179
|
yield this.setStylerSheet();
|