@social-mail/social-mail-client 1.2.417 → 1.2.418
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 +15 -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/drag-drop/DragDropHelper.d.ts.map +1 -1
- package/dist/site-editor/drag-drop/DragDropHelper.js +0 -1
- package/dist/site-editor/drag-drop/DragDropHelper.js.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +15 -5
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +15 -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/drag-drop/DragDropHelper.ts +0 -1
- package/src/site-editor/editor/HtmlPageEditor.tsx +15 -5
|
@@ -46415,7 +46415,6 @@ System.register([], function (_export, _context) {
|
|
|
46415
46415
|
setTimeout(() => document.body.contentEditable = "true", 0);
|
|
46416
46416
|
});
|
|
46417
46417
|
setTimeout(() => {
|
|
46418
|
-
editor.commit();
|
|
46419
46418
|
document.body.querySelectorAll("*").forEach(e => e.draggable = true);
|
|
46420
46419
|
}, 100);
|
|
46421
46420
|
}
|
|
@@ -51408,6 +51407,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51408
51407
|
const lastHtml = this.lastHtml;
|
|
51409
51408
|
const clone = this.htmlDocument.documentElement.cloneNode(true);
|
|
51410
51409
|
const currentHtml = clone.innerHTML;
|
|
51410
|
+
if (lastHtml === currentHtml) {
|
|
51411
|
+
return;
|
|
51412
|
+
}
|
|
51411
51413
|
const body = clone.querySelector("body");
|
|
51412
51414
|
body.removeAttribute("contentEditable");
|
|
51413
51415
|
body.removeAttribute("editing");
|
|
@@ -51456,9 +51458,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51456
51458
|
this.lastCommittedBody = body.innerHTML;
|
|
51457
51459
|
return;
|
|
51458
51460
|
}
|
|
51459
|
-
if (lastHtml === currentHtml) {
|
|
51460
|
-
return;
|
|
51461
|
-
}
|
|
51462
51461
|
this.undoList.add(this.lastHtml);
|
|
51463
51462
|
this.lastHtml = currentHtml;
|
|
51464
51463
|
this.lastCommittedHtml = clone.outerHTML;
|
|
@@ -51474,14 +51473,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51474
51473
|
}, 100);
|
|
51475
51474
|
}
|
|
51476
51475
|
undo() {
|
|
51476
|
+
if (!this.undoList.length) {
|
|
51477
|
+
return;
|
|
51478
|
+
}
|
|
51477
51479
|
this.redoList.insert(this.redoList.length, this.htmlDocument.documentElement.innerHTML);
|
|
51478
|
-
|
|
51480
|
+
const lastHtml = this.undoList.pop();
|
|
51481
|
+
this.htmlDocument.documentElement.innerHTML = lastHtml;
|
|
51482
|
+
this.lastHtml = lastHtml;
|
|
51479
51483
|
this.htmlDocument.body.contentEditable = "true";
|
|
51480
51484
|
this.htmlDocument.body.setAttribute("editing", "true");
|
|
51481
51485
|
}
|
|
51482
51486
|
redo() {
|
|
51487
|
+
if (!this.redoList.length) {
|
|
51488
|
+
return;
|
|
51489
|
+
}
|
|
51483
51490
|
this.undoList.insert(this.undoList.length, this.htmlDocument.documentElement.innerHTML);
|
|
51484
|
-
|
|
51491
|
+
const lastHtml = this.redoList.pop();
|
|
51492
|
+
this.htmlDocument.documentElement.innerHTML = lastHtml;
|
|
51493
|
+
this.lastHtml = lastHtml;
|
|
51485
51494
|
this.htmlDocument.body.contentEditable = "true";
|
|
51486
51495
|
this.htmlDocument.body.setAttribute("editing", "true");
|
|
51487
51496
|
}
|