@social-mail/social-mail-client 1.2.95 → 1.2.96

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.
@@ -28821,7 +28821,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
28821
28821
  margin-bottom: 25px;
28822
28822
  }
28823
28823
  & .engagements {
28824
- & > * {
28824
+ display: flex;
28825
+ flex-wrap: wrap;
28826
+ gap: 5px;
28827
+ margin-top: 5px;
28828
+ margin-bottom: 5px;
28829
+ align-items: center;
28830
+ & > span {
28825
28831
  border: solid 1px lightgray;
28826
28832
  padding: 3px;
28827
28833
  padding-left: 7px;
@@ -28919,12 +28925,14 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
28919
28925
  cancelToken
28920
28926
  })), {
28921
28927
  itemRenderer: thread => {
28922
- var _a, _b, _c, _d, _e, _f, _g;
28928
+ var _a, _b, _c, _d, _e, _f, _g, _h;
28923
28929
  const item = thread.email;
28924
28930
  const internalDate = (_b = (_a = item.dateSent) !== null && _a !== void 0 ? _a : item.dateReceived) !== null && _b !== void 0 ? _b : item.dateCreated;
28925
28931
  const sent = item.senderID === thread.mailboxID;
28926
28932
  const remaining = DateTime.from((_c = item.dateSent) !== null && _c !== void 0 ? _c : DateTime.today).diff(DateTime.now);
28927
28933
  const isSending = thread.email.status === "scheduled" && remaining.totalSeconds > 3;
28934
+ const engagements = (_d = thread.email.engagements) !== null && _d !== void 0 ? _d : [];
28935
+ const tags = ((_e = thread.email.tags) !== null && _e !== void 0 ? _e : "").split(",").filter(x => x);
28928
28936
  let readStatus = "";
28929
28937
  let readColor = "";
28930
28938
  if (sent) {
@@ -28953,8 +28961,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
28953
28961
  text: item.subject
28954
28962
  }), item.received ? XNode.create("div", null) : item.userID !== SocialMailApp.user.userID && XNode.create("div", {
28955
28963
  "style-max-width": "20ch",
28956
- title: (_d = item.senderUser) === null || _d === void 0 ? void 0 : _d.displayName,
28957
- text: (_e = item.senderUser) === null || _e === void 0 ? void 0 : _e.displayName
28964
+ title: (_f = item.senderUser) === null || _f === void 0 ? void 0 : _f.displayName,
28965
+ text: (_g = item.senderUser) === null || _g === void 0 ? void 0 : _g.displayName
28958
28966
  }), XNode.create("div", {
28959
28967
  text: DateFormats.relative.short(internalDate),
28960
28968
  title: DateFormats.withWeekDayAndTime(internalDate)
@@ -28966,28 +28974,29 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
28966
28974
  height: "40vh"
28967
28975
  }, XNode.create("div", Object.assign({
28968
28976
  class: "message"
28969
- }, renderMail(thread)))), ((_f = item.engagements) === null || _f === void 0 ? void 0 : _f.length) && XNode.create("div", {
28977
+ }, renderMail(thread)))), XNode.create("div", {
28970
28978
  class: "engagements"
28971
- }, ...item.engagements.map(x => XNode.create("span", {
28979
+ }, sent && XNode.create("i", {
28980
+ class: "fa-solid fa-circle-small",
28981
+ "style-color": readColor,
28982
+ title: readStatus
28983
+ }), ...engagements.map(x => XNode.create("span", {
28972
28984
  "data-click-event": "view-engagements",
28973
28985
  "data-cursor": "pointer",
28974
28986
  title: `View all ${x.engagement} ${x.count}`,
28975
28987
  text: `${x.engagement} ${x.count}`
28976
- }))), ((_g = item.attachments) === null || _g === void 0 ? void 0 : _g.length) && XNode.create("div", {
28988
+ }))), ((_h = item.attachments) === null || _h === void 0 ? void 0 : _h.length) && XNode.create("div", {
28977
28989
  class: "attachments",
28978
28990
  "data-layout": "flex-wrap-padding"
28979
- }, ...item.attachments.map(FilePreview)), thread.email.tags && XNode.create("div", {
28980
- "data-layout": "row"
28981
- }, ...thread.email.tags.split(",").map(x => XNode.create("span", {
28991
+ }, ...item.attachments.map(FilePreview)), XNode.create("div", {
28992
+ "data-layout": "row",
28993
+ "data-margin-top": "default",
28994
+ "data-margin-bottom": "default"
28995
+ }, ...tags.map(x => XNode.create("span", {
28982
28996
  text: `#${x.startsWith("#") ? x.substring(1) : x}`
28983
- }))), sent ? XNode.create("div", {
28984
- "data-layout": "row"
28985
- }, XNode.create("i", {
28986
- class: "fa-solid fa-circle-small",
28987
- "style-color": readColor,
28988
- title: readStatus
28989
- })) : XNode.create("div", {
28990
- "data-layout": "row"
28997
+ }))), !sent && XNode.create("div", {
28998
+ "data-layout": "row",
28999
+ "data-margin-top": "default"
28991
29000
  }, XNode.create("i", {
28992
29001
  "data-click-event": "react-email",
28993
29002
  class: "fa-light fa-face-smile-plus",