@social-mail/social-mail-client 1.2.416 → 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 +16 -7
- 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 +16 -6
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +16 -7
- 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 +16 -6
|
@@ -41460,7 +41460,6 @@ System.register([], function (_export, _context) {
|
|
|
41460
41460
|
setTimeout(() => document.body.contentEditable = "true", 0);
|
|
41461
41461
|
});
|
|
41462
41462
|
setTimeout(() => {
|
|
41463
|
-
editor.commit();
|
|
41464
41463
|
document.body.querySelectorAll("*").forEach(e => e.draggable = true);
|
|
41465
41464
|
}, 100);
|
|
41466
41465
|
}
|
|
@@ -46452,6 +46451,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
46452
46451
|
this.redoList.clear();
|
|
46453
46452
|
const lastHtml = this.lastHtml;
|
|
46454
46453
|
const clone = this.htmlDocument.documentElement.cloneNode(true);
|
|
46454
|
+
const currentHtml = clone.innerHTML;
|
|
46455
|
+
if (lastHtml === currentHtml) {
|
|
46456
|
+
return;
|
|
46457
|
+
}
|
|
46455
46458
|
const body = clone.querySelector("body");
|
|
46456
46459
|
body.removeAttribute("contentEditable");
|
|
46457
46460
|
body.removeAttribute("editing");
|
|
@@ -46494,16 +46497,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
46494
46497
|
}
|
|
46495
46498
|
}
|
|
46496
46499
|
}
|
|
46497
|
-
const currentHtml = clone.innerHTML;
|
|
46498
46500
|
if (!lastHtml) {
|
|
46499
46501
|
this.lastHtml = currentHtml;
|
|
46500
46502
|
this.lastCommittedHtml = clone.outerHTML;
|
|
46501
46503
|
this.lastCommittedBody = body.innerHTML;
|
|
46502
46504
|
return;
|
|
46503
46505
|
}
|
|
46504
|
-
if (lastHtml === currentHtml) {
|
|
46505
|
-
return;
|
|
46506
|
-
}
|
|
46507
46506
|
this.undoList.add(this.lastHtml);
|
|
46508
46507
|
this.lastHtml = currentHtml;
|
|
46509
46508
|
this.lastCommittedHtml = clone.outerHTML;
|
|
@@ -46519,14 +46518,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
46519
46518
|
}, 100);
|
|
46520
46519
|
}
|
|
46521
46520
|
undo() {
|
|
46521
|
+
if (!this.undoList.length) {
|
|
46522
|
+
return;
|
|
46523
|
+
}
|
|
46522
46524
|
this.redoList.insert(this.redoList.length, this.htmlDocument.documentElement.innerHTML);
|
|
46523
|
-
|
|
46525
|
+
const lastHtml = this.undoList.pop();
|
|
46526
|
+
this.htmlDocument.documentElement.innerHTML = lastHtml;
|
|
46527
|
+
this.lastHtml = lastHtml;
|
|
46524
46528
|
this.htmlDocument.body.contentEditable = "true";
|
|
46525
46529
|
this.htmlDocument.body.setAttribute("editing", "true");
|
|
46526
46530
|
}
|
|
46527
46531
|
redo() {
|
|
46532
|
+
if (!this.redoList.length) {
|
|
46533
|
+
return;
|
|
46534
|
+
}
|
|
46528
46535
|
this.undoList.insert(this.undoList.length, this.htmlDocument.documentElement.innerHTML);
|
|
46529
|
-
|
|
46536
|
+
const lastHtml = this.redoList.pop();
|
|
46537
|
+
this.htmlDocument.documentElement.innerHTML = lastHtml;
|
|
46538
|
+
this.lastHtml = lastHtml;
|
|
46530
46539
|
this.htmlDocument.body.contentEditable = "true";
|
|
46531
46540
|
this.htmlDocument.body.setAttribute("editing", "true");
|
|
46532
46541
|
}
|