@social-mail/social-mail-client 1.2.95 → 1.2.97
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/admin/AdminAppIndex.pack.js +29 -19
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +9 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +2 -1
- 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/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +29 -19
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +9 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +27 -18
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +2 -1
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/ConversationPage.tsx +27 -15
- package/src/web/page/mails/service/ConversationService.tsx +1 -1
|
@@ -22302,6 +22302,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
22302
22302
|
}],
|
|
22303
22303
|
execute: function () {
|
|
22304
22304
|
_export("renderMail", renderMail = AtomControl.registerProperty("data-html", "html", (c, e, value) => {
|
|
22305
|
+
var _a;
|
|
22305
22306
|
if (!value) {
|
|
22306
22307
|
e.innerHTML = "";
|
|
22307
22308
|
return;
|
|
@@ -22353,7 +22354,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
22353
22354
|
mode: "open"
|
|
22354
22355
|
});
|
|
22355
22356
|
shadow.appendChild(msg);
|
|
22356
|
-
if (!thread.timeRead && thread.mailboxID) {
|
|
22357
|
+
if (!thread.timeRead && thread.mailboxID && thread.mailboxID !== ((_a = thread.email) === null || _a === void 0 ? void 0 : _a.senderID)) {
|
|
22357
22358
|
const timeRead = DateTime.now;
|
|
22358
22359
|
thread.timeRead = timeRead;
|
|
22359
22360
|
const control = AtomControl.from(e);
|
|
@@ -36138,7 +36139,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36138
36139
|
margin-bottom: 25px;
|
|
36139
36140
|
}
|
|
36140
36141
|
& .engagements {
|
|
36141
|
-
|
|
36142
|
+
display: flex;
|
|
36143
|
+
flex-wrap: wrap;
|
|
36144
|
+
gap: 5px;
|
|
36145
|
+
margin-top: 5px;
|
|
36146
|
+
margin-bottom: 5px;
|
|
36147
|
+
align-items: center;
|
|
36148
|
+
& > span {
|
|
36142
36149
|
border: solid 1px lightgray;
|
|
36143
36150
|
padding: 3px;
|
|
36144
36151
|
padding-left: 7px;
|
|
@@ -36236,12 +36243,14 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36236
36243
|
cancelToken
|
|
36237
36244
|
})), {
|
|
36238
36245
|
itemRenderer: thread => {
|
|
36239
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
36246
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
36240
36247
|
const item = thread.email;
|
|
36241
36248
|
const internalDate = (_b = (_a = item.dateSent) !== null && _a !== void 0 ? _a : item.dateReceived) !== null && _b !== void 0 ? _b : item.dateCreated;
|
|
36242
36249
|
const sent = item.senderID === thread.mailboxID;
|
|
36243
36250
|
const remaining = DateTime.from((_c = item.dateSent) !== null && _c !== void 0 ? _c : DateTime.today).diff(DateTime.now);
|
|
36244
36251
|
const isSending = thread.email.status === "scheduled" && remaining.totalSeconds > 3;
|
|
36252
|
+
const engagements = (_d = thread.email.engagements) !== null && _d !== void 0 ? _d : [];
|
|
36253
|
+
const tags = ((_e = thread.email.tags) !== null && _e !== void 0 ? _e : "").split(",").filter(x => x);
|
|
36245
36254
|
let readStatus = "";
|
|
36246
36255
|
let readColor = "";
|
|
36247
36256
|
if (sent) {
|
|
@@ -36270,8 +36279,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36270
36279
|
text: item.subject
|
|
36271
36280
|
}), item.received ? XNode.create("div", null) : item.userID !== SocialMailApp.user.userID && XNode.create("div", {
|
|
36272
36281
|
"style-max-width": "20ch",
|
|
36273
|
-
title: (
|
|
36274
|
-
text: (
|
|
36282
|
+
title: (_f = item.senderUser) === null || _f === void 0 ? void 0 : _f.displayName,
|
|
36283
|
+
text: (_g = item.senderUser) === null || _g === void 0 ? void 0 : _g.displayName
|
|
36275
36284
|
}), XNode.create("div", {
|
|
36276
36285
|
text: DateFormats.relative.short(internalDate),
|
|
36277
36286
|
title: DateFormats.withWeekDayAndTime(internalDate)
|
|
@@ -36283,28 +36292,29 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
36283
36292
|
height: "40vh"
|
|
36284
36293
|
}, XNode.create("div", Object.assign({
|
|
36285
36294
|
class: "message"
|
|
36286
|
-
}, renderMail(thread)))),
|
|
36295
|
+
}, renderMail(thread)))), XNode.create("div", {
|
|
36287
36296
|
class: "engagements"
|
|
36288
|
-
},
|
|
36297
|
+
}, sent && XNode.create("i", {
|
|
36298
|
+
class: "fa-solid fa-circle-small",
|
|
36299
|
+
"style-color": readColor,
|
|
36300
|
+
title: readStatus
|
|
36301
|
+
}), ...engagements.map(x => XNode.create("span", {
|
|
36289
36302
|
"data-click-event": "view-engagements",
|
|
36290
36303
|
"data-cursor": "pointer",
|
|
36291
36304
|
title: `View all ${x.engagement} ${x.count}`,
|
|
36292
36305
|
text: `${x.engagement} ${x.count}`
|
|
36293
|
-
}))), ((
|
|
36306
|
+
}))), ((_h = item.attachments) === null || _h === void 0 ? void 0 : _h.length) && XNode.create("div", {
|
|
36294
36307
|
class: "attachments",
|
|
36295
36308
|
"data-layout": "flex-wrap-padding"
|
|
36296
|
-
}, ...item.attachments.map(FilePreview)),
|
|
36297
|
-
"data-layout": "row"
|
|
36298
|
-
|
|
36309
|
+
}, ...item.attachments.map(FilePreview)), XNode.create("div", {
|
|
36310
|
+
"data-layout": "row",
|
|
36311
|
+
"data-margin-top": "default",
|
|
36312
|
+
"data-margin-bottom": "default"
|
|
36313
|
+
}, ...tags.map(x => XNode.create("span", {
|
|
36299
36314
|
text: `#${x.startsWith("#") ? x.substring(1) : x}`
|
|
36300
|
-
}))), sent
|
|
36301
|
-
"data-layout": "row"
|
|
36302
|
-
|
|
36303
|
-
class: "fa-solid fa-circle-small",
|
|
36304
|
-
"style-color": readColor,
|
|
36305
|
-
title: readStatus
|
|
36306
|
-
})) : XNode.create("div", {
|
|
36307
|
-
"data-layout": "row"
|
|
36315
|
+
}))), !sent && XNode.create("div", {
|
|
36316
|
+
"data-layout": "row",
|
|
36317
|
+
"data-margin-top": "default"
|
|
36308
36318
|
}, XNode.create("i", {
|
|
36309
36319
|
"data-click-event": "react-email",
|
|
36310
36320
|
class: "fa-light fa-face-smile-plus",
|