@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.
@@ -35379,10 +35379,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "./Block"], function (_expor
35379
35379
 
35380
35380
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/blocks/Components");
35381
35381
 
35382
- System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/controls/AtomControl", "../drag-drop/DragDropHelper", "../toolbars/UndoRedoToolbar", "../blocks/WrapGrid", "../toolbars/EditorToolbar", "../properties/Properties", "../styler/StylerSet", "./SelectedElement", "@web-atoms/core/dist/core/AtomBinder", "../styler/Styler", "../blocks/ImageBox", "../blocks/RowBox", "../blocks/ColumnBox", "../blocks/VerticalImageBox", "../blocks/Image", "../blocks/ImageCard", "../blocks/TextBox", "../blocks/Card", "../blocks/List", "../blocks/Components"], function (_export, _context) {
35382
+ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/core/sleep", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/controls/AtomControl", "../drag-drop/DragDropHelper", "../toolbars/UndoRedoToolbar", "../blocks/WrapGrid", "../toolbars/EditorToolbar", "../properties/Properties", "../styler/StylerSet", "./SelectedElement", "@web-atoms/core/dist/core/AtomBinder", "../styler/Styler", "../blocks/ImageBox", "../blocks/RowBox", "../blocks/ColumnBox", "../blocks/VerticalImageBox", "../blocks/Image", "../blocks/ImageCard", "../blocks/TextBox", "../blocks/Card", "../blocks/List", "../blocks/Components", "@web-atoms/core/dist/core/types"], function (_export, _context) {
35383
35383
  "use strict";
35384
35384
 
35385
- var __awaiter, __decorate, __metadata, Bind, XNode, sleep, styled, Action, AtomControl, InstallDragDropHelper, UndoRedoToolbar, WrapGrid, EditorToolbar, Properties, StylerSet, SelectedElement, AtomBinder, StylerVariable, ImageBox, RightImageBox, RowBox, ColumnBox, Columns2, Columns3, VerticalImageBox, Image, ImageCard, TextBox, Card, List, BlogComponent, HtmlPageEditor, desktopWidth, tabletWidth, mobileWidth;
35385
+ var __awaiter, __decorate, __metadata, Bind, XNode, sleep, styled, Action, AtomControl, InstallDragDropHelper, UndoRedoToolbar, WrapGrid, EditorToolbar, Properties, StylerSet, SelectedElement, AtomBinder, StylerVariable, ImageBox, RightImageBox, RowBox, ColumnBox, Columns2, Columns3, VerticalImageBox, Image, ImageCard, TextBox, Card, List, BlogComponent, UMD, HtmlPageEditor, desktopWidth, tabletWidth, mobileWidth;
35386
35386
  _export("default", void 0);
35387
35387
  return {
35388
35388
  setters: [function (_tslib) {
@@ -35442,6 +35442,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
35442
35442
  List = _blocksList.List;
35443
35443
  }, function (_blocksComponents) {
35444
35444
  BlogComponent = _blocksComponents.BlogComponent;
35445
+ }, function (_webAtomsCoreDistCoreTypes) {
35446
+ UMD = _webAtomsCoreDistCoreTypes.UMD;
35445
35447
  }],
35446
35448
  execute: function () {
35447
35449
  styled.css`
@@ -35904,9 +35906,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
35904
35906
  const blogView = clone.querySelector(`section[data-web-atoms-view="blog-view"]`);
35905
35907
  if (blogView) {
35906
35908
  const blogScript = this.htmlDocument.createElement("script");
35907
- blogScript.src = "https://cdn.jsdelivr.net/npm/@social-mail/social-mail-client@1.2.45/component.js";
35909
+ blogScript.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
35908
35910
  blogScript.setAttribute("data-package", "@social-mail/social-mail-client");
35909
- blogScript.setAttribute("data-package-root", "https://cdn.jsdelivr.net/npm/@social-mail/social-mail-client@1.2.45/");
35911
+ blogScript.setAttribute("data-package-root", UMD.resolvePath("@social-mail/social-mail-client/"));
35910
35912
  blogScript.setAttribute("data-replace", "true");
35911
35913
  blogScript.setAttribute("data-view", "dist/public/channel/ChannelView");
35912
35914
  blogView.parentElement.replaceChild(blogScript, blogView);
@@ -35922,7 +35924,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
35922
35924
  this.undoList.add(this.lastHtml);
35923
35925
  this.lastHtml = currentHtml;
35924
35926
  this.element.dispatchEvent(new CustomEvent("htmlPageChanged", {
35925
- detail: currentHtml,
35927
+ detail: clone.outerHTML,
35926
35928
  bubbles: true
35927
35929
  }));
35928
35930
  AtomBinder.refreshValue(this, "htmlPage");
@@ -36813,7 +36815,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
36813
36815
  }
36814
36816
  savePage() {
36815
36817
  return __awaiter(this, void 0, void 0, function* () {
36816
- const content = new File([this.pageContent], this.selectedFile.name, {
36818
+ const html = `<!DOCTYPE html>${this.pageContent}`;
36819
+ const content = new File([html], this.selectedFile.name, {
36817
36820
  type: this.selectedFile.contentType
36818
36821
  });
36819
36822
  const result = yield this.cloudFileService.saveFile({