@social-mail/social-mail-client 1.2.102 → 1.2.103

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.
@@ -64,11 +64,26 @@ export default class ChannelMessage extends AtomControl {
64
64
  <section { ... renderMail({ email })}/>
65
65
  </section>
66
66
  <footer>
67
- <img
67
+ <button
68
+ data-element="engage"
68
69
  data-click-event="react-email"
69
- src={UMD.resolvePath("@social-mail/social-mail-client/content/images/icons/face-plus.svg")}
70
- style-max-height="15px"
71
- title="React"/>
70
+ style="padding:0; margin:0; border: none; outline: none;"
71
+ >
72
+ <img
73
+ src={UMD.resolvePath("@social-mail/social-mail-client/content/images/icons/face-plus.svg")}
74
+ style-max-height="15px"
75
+ title="React"/>
76
+ </button>
77
+ <button
78
+ data-element="engage"
79
+ data-click-event="reply-email"
80
+ style="padding:0; margin:0; border: none; outline: none;"
81
+ >
82
+ <img
83
+ src={UMD.resolvePath("@social-mail/social-mail-client/content/images/icons/comment-plus.svg")}
84
+ style-max-height="15px"
85
+ title="React"/>
86
+ </button>
72
87
  { ... engagements.map((x) =>
73
88
  <span
74
89
  title={`View all ${x.engagement} ${x.count}`}
@@ -90,10 +105,10 @@ export default class ChannelMessage extends AtomControl {
90
105
  const subject = `${emoji}:${Number(email.emailID).toString(36)}:${email.headerMessageID}`;
91
106
  await PopupService.alert({
92
107
  message: <div data-layout="vertical-flex">
93
- To engage with this conversation, please join the channel.
94
- And then reply to this email with following subject.
108
+ To add your emoji to this post, email just the emoji {emoji} with given subject to the channel email address.
95
109
  <div>To: {channel.emailAddress.emailAddress}</div>
96
110
  <div>Subject: {subject}</div>
111
+ <div>Body: {emoji}</div>
97
112
  <div>
98
113
  <a href={`mailto:${channel.emailAddress.emailAddress}?subject=${subject}&body=${emoji}`}>Email Now</a>
99
114
  </div>
@@ -102,4 +117,22 @@ export default class ChannelMessage extends AtomControl {
102
117
  });
103
118
  }
104
119
 
120
+ @Action({ onEvent: "reply-email"})
121
+ async replyEmail(a, ce: CustomEvent) {
122
+ const emoji = "💬";
123
+ const { channel, email } = this;
124
+ const subject = `${emoji}:${Number(email.emailID).toString(36)}:${email.headerMessageID}`;
125
+ await PopupService.alert({
126
+ message: <div data-layout="vertical-flex">
127
+ To send comment to this post, email us your comment with given subject to the channel email address.
128
+ <div>To: {channel.emailAddress.emailAddress}</div>
129
+ <div>Subject: {subject}</div>
130
+ <div>
131
+ <a href={`mailto:${channel.emailAddress.emailAddress}?subject=${subject}`}>Email Now</a>
132
+ </div>
133
+ </div>,
134
+ title: "Send Email"
135
+ });
136
+ }
137
+
105
138
  }
@@ -1,6 +1,6 @@
1
1
  import styled from "@web-atoms/core/dist/style/styled";
2
2
 
3
- styled.css `
3
+ styled.css `
4
4
 
5
5
  box-sizing: border-box;
6
6
 
@@ -8,6 +8,19 @@ box-sizing: border-box;
8
8
 
9
9
  }
10
10
 
11
+ & button[data-element=engage] {
12
+ margin:0;
13
+ border: none;
14
+ outline: none;
15
+ background: transparent;
16
+ cursor: pointer;
17
+ & > img {
18
+ max-height: 20px;
19
+ height: 20px;
20
+ pointer-events: none;
21
+ }
22
+ }
23
+
11
24
  & > section {
12
25
  & [data-element=blog-item] {
13
26
  margin: 10px;
@@ -62,6 +75,9 @@ box-sizing: border-box;
62
75
  background-color: canvas;
63
76
  border-bottom-left-radius: 10px;
64
77
  border-bottom-right-radius: 10px;
78
+ display: flex;
79
+ gap: 5px;
80
+ flex-wrap: wrap;
65
81
  }
66
82
  }
67
83
  }