@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
|
@@ -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
|
}
|
|
@@ -51407,6 +51406,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51407
51406
|
this.redoList.clear();
|
|
51408
51407
|
const lastHtml = this.lastHtml;
|
|
51409
51408
|
const clone = this.htmlDocument.documentElement.cloneNode(true);
|
|
51409
|
+
const currentHtml = clone.innerHTML;
|
|
51410
|
+
if (lastHtml === currentHtml) {
|
|
51411
|
+
return;
|
|
51412
|
+
}
|
|
51410
51413
|
const body = clone.querySelector("body");
|
|
51411
51414
|
body.removeAttribute("contentEditable");
|
|
51412
51415
|
body.removeAttribute("editing");
|
|
@@ -51449,16 +51452,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51449
51452
|
}
|
|
51450
51453
|
}
|
|
51451
51454
|
}
|
|
51452
|
-
const currentHtml = clone.innerHTML;
|
|
51453
51455
|
if (!lastHtml) {
|
|
51454
51456
|
this.lastHtml = currentHtml;
|
|
51455
51457
|
this.lastCommittedHtml = clone.outerHTML;
|
|
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
|
}
|