@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.
@@ -38818,10 +38818,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "./Block"], function (_expor
38818
38818
 
38819
38819
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/blocks/Components");
38820
38820
 
38821
- 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) {
38821
+ 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) {
38822
38822
  "use strict";
38823
38823
 
38824
- 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;
38824
+ 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;
38825
38825
  _export("default", void 0);
38826
38826
  return {
38827
38827
  setters: [function (_tslib) {
@@ -38881,6 +38881,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
38881
38881
  List = _blocksList.List;
38882
38882
  }, function (_blocksComponents) {
38883
38883
  BlogComponent = _blocksComponents.BlogComponent;
38884
+ }, function (_webAtomsCoreDistCoreTypes) {
38885
+ UMD = _webAtomsCoreDistCoreTypes.UMD;
38884
38886
  }],
38885
38887
  execute: function () {
38886
38888
  styled.css`
@@ -39343,9 +39345,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
39343
39345
  const blogView = clone.querySelector(`section[data-web-atoms-view="blog-view"]`);
39344
39346
  if (blogView) {
39345
39347
  const blogScript = this.htmlDocument.createElement("script");
39346
- blogScript.src = "https://cdn.jsdelivr.net/npm/@social-mail/social-mail-client@1.2.45/component.js";
39348
+ blogScript.src = UMD.resolvePath("@social-mail/social-mail-client/component.js");
39347
39349
  blogScript.setAttribute("data-package", "@social-mail/social-mail-client");
39348
- blogScript.setAttribute("data-package-root", "https://cdn.jsdelivr.net/npm/@social-mail/social-mail-client@1.2.45/");
39350
+ blogScript.setAttribute("data-package-root", UMD.resolvePath("@social-mail/social-mail-client/"));
39349
39351
  blogScript.setAttribute("data-replace", "true");
39350
39352
  blogScript.setAttribute("data-view", "dist/public/channel/ChannelView");
39351
39353
  blogView.parentElement.replaceChild(blogScript, blogView);
@@ -39361,7 +39363,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
39361
39363
  this.undoList.add(this.lastHtml);
39362
39364
  this.lastHtml = currentHtml;
39363
39365
  this.element.dispatchEvent(new CustomEvent("htmlPageChanged", {
39364
- detail: currentHtml,
39366
+ detail: clone.outerHTML,
39365
39367
  bubbles: true
39366
39368
  }));
39367
39369
  AtomBinder.refreshValue(this, "htmlPage");
@@ -40102,7 +40104,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
40102
40104
  }
40103
40105
  savePage() {
40104
40106
  return __awaiter(this, void 0, void 0, function* () {
40105
- const content = new File([this.pageContent], this.selectedFile.name, {
40107
+ const html = `<!DOCTYPE html>${this.pageContent}`;
40108
+ const content = new File([html], this.selectedFile.name, {
40106
40109
  type: this.selectedFile.contentType
40107
40110
  });
40108
40111
  const result = yield this.cloudFileService.saveFile({