@social-mail/social-mail-client 1.2.10 → 1.2.12

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.
@@ -18079,11 +18079,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
18079
18079
  for (const iterator of descendentElementIterator(msg)) {
18080
18080
  if (iterator.tagName === "IMG") {
18081
18081
  const src = iterator.getAttribute("src");
18082
- if (src === null || src === void 0 ? void 0 : src.startsWith("cid:")) {
18083
- const cid = src.substring(4);
18084
- const a = mail.attachments.find(x => x.contentID === cid);
18085
- if (a) {
18086
- iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`);
18082
+ if (src) {
18083
+ if (src.startsWith("cid:")) {
18084
+ const cid = src.substring(4);
18085
+ const a = mail.attachments.find(x => x.contentID === cid);
18086
+ if (a) {
18087
+ iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`);
18088
+ }
18089
+ }
18090
+ if (/^http\:\/\//i.test(src)) {
18091
+ iterator.setAttribute("src", src.substring(5));
18087
18092
  }
18088
18093
  }
18089
18094
  continue;
@@ -24912,7 +24917,11 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
24912
24917
  }, renderMail(thread)))), ((_e = item.attachments) === null || _e === void 0 ? void 0 : _e.length) && XNode.create("div", {
24913
24918
  class: "attachments",
24914
24919
  "data-layout": "flex-wrap-padding"
24915
- }, ...item.attachments.map(FilePreview)), !sent && XNode.create("div", {
24920
+ }, ...item.attachments.map(FilePreview)), thread.email.tags && XNode.create("div", {
24921
+ "data-layout": "row"
24922
+ }, ...thread.email.tags.split(",").map(x => XNode.create("span", {
24923
+ text: `#${x.startsWith("#") ? x.substring(1) : x}`
24924
+ }))), !sent && XNode.create("div", {
24916
24925
  "data-layout": "row"
24917
24926
  }, XNode.create("i", {
24918
24927
  "data-click-event": "reply-email",
@@ -35002,7 +35011,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode"], function (_export,
35002
35011
  System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "@web-atoms/date-time/dist/DateTime"], function (_export, _context) {
35003
35012
  "use strict";
35004
35013
 
35005
- var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Domain, HostedDomain, Mailbox, MailboxSyncTarget, DateTime, ExternalMailboxService;
35014
+ var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, HostedDomain, Mailbox, MailboxSyncTarget, DateTime, ExternalMailboxService;
35006
35015
  return {
35007
35016
  setters: [function (_tslib) {
35008
35017
  __awaiter = _tslib.__awaiter;
@@ -35015,7 +35024,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
35015
35024
  }, function (_servicesEntityService) {
35016
35025
  EntityService = _servicesEntityService.default;
35017
35026
  }, function (_modelModel) {
35018
- Domain = _modelModel.Domain;
35019
35027
  HostedDomain = _modelModel.HostedDomain;
35020
35028
  Mailbox = _modelModel.Mailbox;
35021
35029
  MailboxSyncTarget = _modelModel.MailboxSyncTarget;
@@ -35033,9 +35041,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
35033
35041
  domainName = emailAddress.substring(index + 1);
35034
35042
  }
35035
35043
  domainName = domainName.toLocaleLowerCase();
35036
- const d = yield this.entityService.query(Domain).where({
35044
+ const d = yield this.entityService.query(HostedDomain).where({
35037
35045
  domainName
35038
- }, p => x => x.name === p.domainName).firstOrDefault();
35046
+ }, p => x => x.domain.name === p.domainName).firstOrDefault();
35039
35047
  if (d) {
35040
35048
  return d;
35041
35049
  }