@social-mail/social-mail-client 1.2.618 → 1.2.620

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.
@@ -21587,6 +21587,7 @@ box-sizing: border-box;
21587
21587
  padding-right: 10px;
21588
21588
  gap: 5px;
21589
21589
  margin-left: auto;
21590
+ align-items: center;
21590
21591
  cursor: pointer;
21591
21592
  }
21592
21593
 
@@ -24271,12 +24272,26 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
24271
24272
  if (!((_a = email.attachments) === null || _a === void 0 ? void 0 : _a.length)) {
24272
24273
  return XNode.create("div", null);
24273
24274
  }
24274
- return XNode.create("carousel-slider", null, ...email.attachments.map(x => /image/i.test(x.contentType) ? XNode.create("img", {
24275
- src: x.downloadUrl
24276
- }) : /video/i.test(x.contentType) && XNode.create("video", {
24277
- controls: "true",
24278
- src: x.downloadUrl
24279
- })));
24275
+ const children = [];
24276
+ for (const element of email.attachments) {
24277
+ if (element.contentID) {
24278
+ continue;
24279
+ }
24280
+ if (/video/i.test(element.contentType)) {
24281
+ children.push(XNode.create("video", {
24282
+ controls: "true",
24283
+ src: element.downloadUrl
24284
+ }));
24285
+ continue;
24286
+ }
24287
+ if (/image/i.test(element.contentType)) {
24288
+ children.push(XNode.create("img", {
24289
+ src: element.downloadUrl
24290
+ }));
24291
+ continue;
24292
+ }
24293
+ }
24294
+ return XNode.create("carousel-slider", {}, children);
24280
24295
  }
24281
24296
  _export("default", MediaCarousel);
24282
24297
  return {
@@ -24298,7 +24313,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
24298
24313
  email = void 0,
24299
24314
  itemPath = void 0
24300
24315
  }) {
24301
- var _a;
24316
+ var _a, _b, _c;
24302
24317
  const {
24303
24318
  engagements = []
24304
24319
  } = email;
@@ -24323,7 +24338,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
24323
24338
  email
24324
24339
  }))) : XNode.create("section", {
24325
24340
  text: email.textBody
24326
- })), XNode.create(MediaCarousel, {
24341
+ })), ((_b = (_a = email.attachments) === null || _a === void 0 ? void 0 : _a.filter(x => x.contentID)) === null || _b === void 0 ? void 0 : _b.length) && XNode.create(MediaCarousel, {
24327
24342
  email: email
24328
24343
  }), XNode.create("footer", null, XNode.create("button", {
24329
24344
  "data-element": "engage",
@@ -24353,7 +24368,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
24353
24368
  class: "fas fa-share"
24354
24369
  }), " Share")), XNode.create("section", {
24355
24370
  "data-element": "comments"
24356
- }, ...((_a = email.children) !== null && _a !== void 0 ? _a : []).map((c, i) => XNode.create(PostView, {
24371
+ }, ...((_c = email.children) !== null && _c !== void 0 ? _c : []).map((c, i) => XNode.create(PostView, {
24357
24372
  itemPath: `${itemPath ? itemPath : "$"}.children.${i}`,
24358
24373
  email: c
24359
24374
  }))));