@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.
@@ -21489,11 +21489,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
21489
21489
  for (const iterator of descendentElementIterator(msg)) {
21490
21490
  if (iterator.tagName === "IMG") {
21491
21491
  const src = iterator.getAttribute("src");
21492
- if (src === null || src === void 0 ? void 0 : src.startsWith("cid:")) {
21493
- const cid = src.substring(4);
21494
- const a = mail.attachments.find(x => x.contentID === cid);
21495
- if (a) {
21496
- iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`);
21492
+ if (src) {
21493
+ if (src.startsWith("cid:")) {
21494
+ const cid = src.substring(4);
21495
+ const a = mail.attachments.find(x => x.contentID === cid);
21496
+ if (a) {
21497
+ iterator.setAttribute("src", `/api/files/${a.appFileID}/${a.fileContentID}/${a.name}`);
21498
+ }
21499
+ }
21500
+ if (/^http\:\/\//i.test(src)) {
21501
+ iterator.setAttribute("src", src.substring(5));
21497
21502
  }
21498
21503
  }
21499
21504
  continue;
@@ -32407,7 +32412,11 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
32407
32412
  }, renderMail(thread)))), ((_e = item.attachments) === null || _e === void 0 ? void 0 : _e.length) && XNode.create("div", {
32408
32413
  class: "attachments",
32409
32414
  "data-layout": "flex-wrap-padding"
32410
- }, ...item.attachments.map(FilePreview)), !sent && XNode.create("div", {
32415
+ }, ...item.attachments.map(FilePreview)), thread.email.tags && XNode.create("div", {
32416
+ "data-layout": "row"
32417
+ }, ...thread.email.tags.split(",").map(x => XNode.create("span", {
32418
+ text: `#${x.startsWith("#") ? x.substring(1) : x}`
32419
+ }))), !sent && XNode.create("div", {
32411
32420
  "data-layout": "row"
32412
32421
  }, XNode.create("i", {
32413
32422
  "data-click-event": "reply-email",
@@ -38148,7 +38157,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode"], function (_export,
38148
38157
  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) {
38149
38158
  "use strict";
38150
38159
 
38151
- var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Domain, HostedDomain, Mailbox, MailboxSyncTarget, DateTime, ExternalMailboxService;
38160
+ var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, HostedDomain, Mailbox, MailboxSyncTarget, DateTime, ExternalMailboxService;
38152
38161
  return {
38153
38162
  setters: [function (_tslib) {
38154
38163
  __awaiter = _tslib.__awaiter;
@@ -38161,7 +38170,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
38161
38170
  }, function (_servicesEntityService) {
38162
38171
  EntityService = _servicesEntityService.default;
38163
38172
  }, function (_modelModel) {
38164
- Domain = _modelModel.Domain;
38165
38173
  HostedDomain = _modelModel.HostedDomain;
38166
38174
  Mailbox = _modelModel.Mailbox;
38167
38175
  MailboxSyncTarget = _modelModel.MailboxSyncTarget;
@@ -38179,9 +38187,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
38179
38187
  domainName = emailAddress.substring(index + 1);
38180
38188
  }
38181
38189
  domainName = domainName.toLocaleLowerCase();
38182
- const d = yield this.entityService.query(Domain).where({
38190
+ const d = yield this.entityService.query(HostedDomain).where({
38183
38191
  domainName
38184
- }, p => x => x.name === p.domainName).firstOrDefault();
38192
+ }, p => x => x.domain.name === p.domainName).firstOrDefault();
38185
38193
  if (d) {
38186
38194
  return d;
38187
38195
  }