@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.
- package/dist/public/channel/ChannelView.pack.js +24 -9
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +2 -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/public/channel/styles/channelViewStyle.d.ts.map +1 -1
- package/dist/public/channel/styles/channelViewStyle.js +1 -0
- package/dist/public/channel/styles/channelViewStyle.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
- package/src/public/channel/styles/channelViewStyle.ts +1 -0
|
@@ -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
|
-
|
|
24275
|
-
|
|
24276
|
-
|
|
24277
|
-
|
|
24278
|
-
|
|
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
|
-
}, ...((
|
|
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
|
}))));
|