@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.
@@ -44957,6 +44957,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
44957
44957
  this.selectedFiles = [];
44958
44958
  }
44959
44959
  init() {
44960
+ var _a;
44960
44961
  return __awaiter(this, void 0, void 0, function* () {
44961
44962
  this.title = "Choose Media";
44962
44963
  const {
@@ -44965,6 +44966,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
44965
44966
  this.selectedFolder = this.parameters.folder;
44966
44967
  this.element.style.minWidth = "90%";
44967
44968
  this.element.style.minHeight = "90%";
44969
+ const selected = this.parameters.selected;
44970
+ if ((selected === null || selected === void 0 ? void 0 : selected.tagName) === "IMG") {
44971
+ if (/^image\-grid$/i.test((_a = selected.parentElement) === null || _a === void 0 ? void 0 : _a.tagName)) {
44972
+ this.size = 480;
44973
+ }
44974
+ }
44968
44975
  this.renderer = XNode.create("div", {
44969
44976
  class: css
44970
44977
  }, XNode.create(FolderTreeView, {
@@ -45250,7 +45257,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
45250
45257
  const files = yield PageNavigator.pushPageForResult(ChooseMediaPage, {
45251
45258
  folder: this.folder,
45252
45259
  accept: "image/*",
45253
- multiple: true
45260
+ multiple: true,
45261
+ selected: this.selection.element
45254
45262
  });
45255
45263
  const images = files.map(({
45256
45264
  file,
@@ -45307,7 +45315,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
45307
45315
  this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
45308
45316
  this.htmlDocument.head.appendChild(script);
45309
45317
  }
45310
- script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.52/dist/components.webpack.js");
45318
+ script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.53/dist/components.webpack.js");
45311
45319
  });
45312
45320
  }
45313
45321
  addStyleSheet(file) {