@social-mail/social-mail-client 1.2.619 → 1.2.621
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 +20 -6
- 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/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/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 {
|