@social-mail/social-mail-client 1.1.31 → 1.1.33

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.
@@ -25879,21 +25879,23 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../services/Emoji"
25879
25879
  };
25880
25880
  EmojiButton = ({
25881
25881
  emoji,
25882
- fh = false,
25883
- title,
25884
- template = fh ? "emoji-button-fh" : "emoji-button"
25882
+ command = "track",
25883
+ title
25885
25884
  }) => {
25886
25885
  const emojiCode = "u" + Emoji.emojiUnicode(emoji);
25886
+ const selector = `social-button-${emojiCode}`;
25887
25887
  return XNode.create("a", {
25888
- "data-element": "emoji-button",
25889
- style: "padding-left:5px;padding-right:5px; text-decoration: none;",
25890
- "data-command": "track",
25888
+ class: selector,
25889
+ style: "text-decoration: none;outline: none;border:none; margin-right: 5px",
25890
+ "data-command": command,
25891
25891
  title: title,
25892
- "data-track": emoji
25893
- }, XNode.create("img", {
25894
- style: "margin-left:5px; max-height: 30px; height: 30px;",
25895
- src: `/social-mail/social/e-img/${template}/${emojiCode}/$emailID$/$activityID$`
25896
- }));
25892
+ "data-track": emoji,
25893
+ "data-replace": "true"
25894
+ }, XNode.create("button", {
25895
+ style: "padding:2px;padding-left: 5px;padding-right: 5px; border: solid 1px lightgray; border-radius: 9999px; display: inline-flex; align-items: center;"
25896
+ }, emoji, " ", XNode.create("span", {
25897
+ "data-element": "count"
25898
+ })));
25897
25899
  };
25898
25900
  AvatarButton = ({
25899
25901
  senderEmail,
@@ -25948,8 +25950,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../services/Emoji"
25948
25950
  title: "Comment ... "
25949
25951
  })), XNode.create("td", {
25950
25952
  style: "text-align: right"
25951
- }, XNode.create("img", {
25952
- src: `/social-mail/social/t/track/$emailID$/$activityID$`
25953
+ }, XNode.create(EmojiButton, {
25954
+ emoji: "\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8\uFE0F",
25955
+ command: "view",
25956
+ title: "Views"
25953
25957
  })))), XNode.create("div", null, XNode.create("br", null), XNode.create("br", null), XNode.create("a", {
25954
25958
  "data-command": "unsubscribe"
25955
25959
  }, "Unsubscribe")));