@social-mail/social-mail-client 1.1.30 → 1.1.32

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,21 @@ 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));
25897
25897
  };
25898
25898
  AvatarButton = ({
25899
25899
  senderEmail,
@@ -25948,8 +25948,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../services/Emoji"
25948
25948
  title: "Comment ... "
25949
25949
  })), XNode.create("td", {
25950
25950
  style: "text-align: right"
25951
- }, XNode.create("img", {
25952
- src: `/social-mail/social/t/trace/$emailID$/$activityID$`
25951
+ }, XNode.create(EmojiButton, {
25952
+ emoji: "\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8\uFE0F",
25953
+ command: "view",
25954
+ title: "Views"
25953
25955
  })))), XNode.create("div", null, XNode.create("br", null), XNode.create("br", null), XNode.create("a", {
25954
25956
  "data-command": "unsubscribe"
25955
25957
  }, "Unsubscribe")));