@social-mail/social-mail-client 1.2.45 → 1.2.47
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 +9 -6
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js +2 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +7 -5
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +9 -6
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +2 -1
- package/src/site-editor/editor/HtmlPageEditor.tsx +4 -3
package/package.json
CHANGED
|
@@ -240,7 +240,8 @@ export default class WebSiteStudioPage extends ContentPage {
|
|
|
240
240
|
|
|
241
241
|
@Action({ onEvent: "save-page"})
|
|
242
242
|
async savePage() {
|
|
243
|
-
const
|
|
243
|
+
const html = `<!DOCTYPE html>${this.pageContent}`;
|
|
244
|
+
const content = new File([html], this.selectedFile.name, { type: this.selectedFile.contentType});
|
|
244
245
|
const result = await this.cloudFileService.saveFile({ appFileID: this.selectedFile.appFileID, content });
|
|
245
246
|
this.selectedFile.url = result.url;
|
|
246
247
|
this.selectedFile.fileContentID = result.fileContentID;
|
|
@@ -25,6 +25,7 @@ import { TextBox } from "../blocks/TextBox";
|
|
|
25
25
|
import { Card } from "../blocks/Card";
|
|
26
26
|
import { List } from "../blocks/List";
|
|
27
27
|
import { BlogComponent } from "../blocks/Components";
|
|
28
|
+
import { UMD } from "@web-atoms/core/dist/core/types";
|
|
28
29
|
|
|
29
30
|
styled.css `
|
|
30
31
|
display: grid;
|
|
@@ -526,9 +527,9 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
526
527
|
const blogView = clone.querySelector(`section[data-web-atoms-view="blog-view"]`);
|
|
527
528
|
if (blogView) {
|
|
528
529
|
const blogScript = this.htmlDocument.createElement("script");
|
|
529
|
-
blogScript.src = "
|
|
530
|
+
blogScript.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
|
|
530
531
|
blogScript.setAttribute("data-package", "@social-mail/social-mail-client");
|
|
531
|
-
blogScript.setAttribute("data-package-root", "
|
|
532
|
+
blogScript.setAttribute("data-package-root", UMD.resolvePath("@social-mail/social-mail-client/"));
|
|
532
533
|
blogScript.setAttribute("data-replace", "true");
|
|
533
534
|
blogScript.setAttribute("data-view", "dist/public/channel/ChannelView");
|
|
534
535
|
blogView.parentElement.replaceChild(blogScript, blogView);
|
|
@@ -543,7 +544,7 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
543
544
|
}
|
|
544
545
|
this.undoList.add(this.lastHtml);
|
|
545
546
|
this.lastHtml = currentHtml;
|
|
546
|
-
this.element.dispatchEvent(new CustomEvent("htmlPageChanged", { detail:
|
|
547
|
+
this.element.dispatchEvent(new CustomEvent("htmlPageChanged", { detail: clone.outerHTML, bubbles: true }));
|
|
547
548
|
AtomBinder.refreshValue(this, "htmlPage");
|
|
548
549
|
setTimeout(() => {
|
|
549
550
|
this.selection.update();
|