@social-mail/social-mail-client 1.2.619 → 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.
- package/dist/public/channel/ChannelView.pack.js +23 -9
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/channel/PostView.js +3 -3
- package/dist/public/channel/PostView.js.map +1 -1
- package/dist/public/channel/controls/MediaCarousel.d.ts.map +1 -1
- package/dist/public/channel/controls/MediaCarousel.js +20 -6
- package/dist/public/channel/controls/MediaCarousel.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/channel/PostView.tsx +1 -1
- package/src/public/channel/controls/MediaCarousel.tsx +28 -10
|
@@ -24272,12 +24272,26 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
24272
24272
|
if (!((_a = email.attachments) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
24273
24273
|
return XNode.create("div", null);
|
|
24274
24274
|
}
|
|
24275
|
-
|
|
24276
|
-
|
|
24277
|
-
|
|
24278
|
-
|
|
24279
|
-
|
|
24280
|
-
|
|
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);
|
|
24281
24295
|
}
|
|
24282
24296
|
_export("default", MediaCarousel);
|
|
24283
24297
|
return {
|
|
@@ -24299,7 +24313,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24299
24313
|
email = void 0,
|
|
24300
24314
|
itemPath = void 0
|
|
24301
24315
|
}) {
|
|
24302
|
-
var _a;
|
|
24316
|
+
var _a, _b, _c;
|
|
24303
24317
|
const {
|
|
24304
24318
|
engagements = []
|
|
24305
24319
|
} = email;
|
|
@@ -24324,7 +24338,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24324
24338
|
email
|
|
24325
24339
|
}))) : XNode.create("section", {
|
|
24326
24340
|
text: email.textBody
|
|
24327
|
-
})), 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, {
|
|
24328
24342
|
email: email
|
|
24329
24343
|
}), XNode.create("footer", null, XNode.create("button", {
|
|
24330
24344
|
"data-element": "engage",
|
|
@@ -24354,7 +24368,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../common/date/DateForma
|
|
|
24354
24368
|
class: "fas fa-share"
|
|
24355
24369
|
}), " Share")), XNode.create("section", {
|
|
24356
24370
|
"data-element": "comments"
|
|
24357
|
-
}, ...((
|
|
24371
|
+
}, ...((_c = email.children) !== null && _c !== void 0 ? _c : []).map((c, i) => XNode.create(PostView, {
|
|
24358
24372
|
itemPath: `${itemPath ? itemPath : "$"}.children.${i}`,
|
|
24359
24373
|
email: c
|
|
24360
24374
|
}))));
|