@social-mail/social-mail-client 1.2.246 → 1.2.248

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.
@@ -48643,6 +48643,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
48643
48643
  this.selectedFiles = [];
48644
48644
  }
48645
48645
  init() {
48646
+ var _a;
48646
48647
  return __awaiter(this, void 0, void 0, function* () {
48647
48648
  this.title = "Choose Media";
48648
48649
  const {
@@ -48651,6 +48652,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
48651
48652
  this.selectedFolder = this.parameters.folder;
48652
48653
  this.element.style.minWidth = "90%";
48653
48654
  this.element.style.minHeight = "90%";
48655
+ const selected = this.parameters.selected;
48656
+ if ((selected === null || selected === void 0 ? void 0 : selected.tagName) === "IMG") {
48657
+ if (/^image\-grid$/i.test((_a = selected.parentElement) === null || _a === void 0 ? void 0 : _a.tagName)) {
48658
+ this.size = 480;
48659
+ }
48660
+ }
48654
48661
  this.renderer = XNode.create("div", {
48655
48662
  class: css
48656
48663
  }, XNode.create(FolderTreeView, {
@@ -48936,7 +48943,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
48936
48943
  const files = yield PageNavigator.pushPageForResult(ChooseMediaPage, {
48937
48944
  folder: this.folder,
48938
48945
  accept: "image/*",
48939
- multiple: true
48946
+ multiple: true,
48947
+ selected: this.selection.element
48940
48948
  });
48941
48949
  const images = files.map(({
48942
48950
  file,
@@ -48993,7 +49001,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
48993
49001
  this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
48994
49002
  this.htmlDocument.head.appendChild(script);
48995
49003
  }
48996
- script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.52/dist/components.webpack.js");
49004
+ script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.53/dist/components.webpack.js");
48997
49005
  });
48998
49006
  }
48999
49007
  addStyleSheet(file) {