@social-mail/social-mail-client 1.8.322 → 1.8.324
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 +49 -17
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.local.css +1 -1
- package/dist/admin/AdminAppIndex.pack.local.css.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/menu/MenuService.d.ts +1 -0
- package/dist/common/menu/MenuService.d.ts.map +1 -1
- package/dist/common/menu/MenuService.js +5 -1
- package/dist/common/menu/MenuService.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.js +2 -1
- package/dist/public/channel/ChannelApp.pack.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
- package/dist/site-editor/drag-drop/DragDropHelper.js +0 -4
- package/dist/site-editor/drag-drop/DragDropHelper.js.map +1 -1
- package/dist/site-editor/editor/SelectedElement.d.ts.map +1 -1
- package/dist/site-editor/editor/SelectedElement.js +4 -0
- package/dist/site-editor/editor/SelectedElement.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +53 -21
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +49 -17
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.local.css +1 -1
- package/dist/web/AppIndex.pack.local.css.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/commands/MailAppEvents.d.ts +1 -0
- package/dist/web/commands/MailAppEvents.d.ts.map +1 -1
- package/dist/web/commands/MailAppEvents.js +2 -1
- package/dist/web/commands/MailAppEvents.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts +2 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +7 -2
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/commands/NewConversationRequest.d.ts.map +1 -1
- package/dist/web/page/mails/commands/NewConversationRequest.js +19 -8
- package/dist/web/page/mails/commands/NewConversationRequest.js.map +1 -1
- package/dist/web/page/mails/commands/ReportConversationCommand.d.ts.map +1 -1
- package/dist/web/page/mails/commands/ReportConversationCommand.js +7 -3
- package/dist/web/page/mails/commands/ReportConversationCommand.js.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContact.local.css +1 -1
- package/dist/web/page/mails/contacts/MailboxContact.local.css.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContacts.d.ts +1 -0
- package/dist/web/page/mails/contacts/MailboxContacts.d.ts.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContacts.js +9 -2
- package/dist/web/page/mails/contacts/MailboxContacts.js.map +1 -1
- package/package.json +1 -1
- package/src/common/menu/MenuService.tsx +6 -1
- package/src/site-editor/drag-drop/DragDropHelper.ts +4 -4
- package/src/site-editor/editor/SelectedElement.tsx +4 -0
- package/src/web/commands/MailAppEvents.ts +3 -1
- package/src/web/page/mails/ConversationPage.tsx +5 -1
- package/src/web/page/mails/commands/NewConversationRequest.tsx +20 -4
- package/src/web/page/mails/commands/ReportConversationCommand.tsx +13 -3
- package/src/web/page/mails/contacts/MailboxContact.local.css +2 -0
- package/src/web/page/mails/contacts/MailboxContacts.tsx +13 -2
|
@@ -3,6 +3,8 @@ import { IMailboxContact } from "../../model/model";
|
|
|
3
3
|
|
|
4
4
|
export const MailAppEvents = {
|
|
5
5
|
|
|
6
|
-
mailboxContactUpdated: EventScope.create<IMailboxContact>()
|
|
6
|
+
mailboxContactUpdated: EventScope.create<IMailboxContact>(),
|
|
7
|
+
|
|
8
|
+
refreshMailboxContacts: EventScope.create(),
|
|
7
9
|
|
|
8
10
|
};
|
|
@@ -38,6 +38,7 @@ import AtomPopover from "@web-atoms/web-controls/dist/basic/elements/AtomPopover
|
|
|
38
38
|
import { ReportPhishingCommand, ReportSpamCommand } from "./commands/ReportEmailCommand";
|
|
39
39
|
import { ReportConversationPhishing, ReportConversationSpam } from "./commands/ReportConversationCommand";
|
|
40
40
|
import NewConversationRequest from "./commands/NewConversationRequest";
|
|
41
|
+
import { MailAppEvents } from "../../commands/MailAppEvents";
|
|
41
42
|
|
|
42
43
|
const itemCss = "conversation-page-item-css";
|
|
43
44
|
|
|
@@ -66,7 +67,7 @@ export default class ConversationPage extends ContentPage {
|
|
|
66
67
|
public mailsRepeater: AtomRepeater;
|
|
67
68
|
|
|
68
69
|
@InjectProperty
|
|
69
|
-
|
|
70
|
+
public conversationService: ConversationService;
|
|
70
71
|
|
|
71
72
|
private mails: IMailboxContactEmail[] = [];
|
|
72
73
|
|
|
@@ -409,6 +410,7 @@ export default class ConversationPage extends ContentPage {
|
|
|
409
410
|
this.parameters.folderTagID = SocialMailApp.contactsFolderTagID;
|
|
410
411
|
await es.save(this.parameters, (c) => c);
|
|
411
412
|
this.showComposeButton();
|
|
413
|
+
MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
|
|
412
414
|
}
|
|
413
415
|
|
|
414
416
|
@Action({ onEvent: "click"})
|
|
@@ -668,6 +670,7 @@ export default class ConversationPage extends ContentPage {
|
|
|
668
670
|
})
|
|
669
671
|
async blockSender() {
|
|
670
672
|
await this.conversationService.block(this.parameters);
|
|
673
|
+
MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
|
|
671
674
|
}
|
|
672
675
|
|
|
673
676
|
@Action({
|
|
@@ -676,6 +679,7 @@ export default class ConversationPage extends ContentPage {
|
|
|
676
679
|
})
|
|
677
680
|
async unblockSender() {
|
|
678
681
|
await this.conversationService.block(this.parameters);
|
|
682
|
+
MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
|
|
679
683
|
}
|
|
680
684
|
|
|
681
685
|
@Action({
|
|
@@ -3,6 +3,7 @@ import { AddIconTextButton, DeleteIconTextButton } from "../../../../common/cont
|
|
|
3
3
|
import { ReportConversationSpam, ReportConversationPhishing } from "./ReportConversationCommand";
|
|
4
4
|
|
|
5
5
|
import "./NewConversationRequest.local.css";
|
|
6
|
+
import AtomPopover from "@web-atoms/web-controls/dist/basic/elements/AtomPopover";
|
|
6
7
|
|
|
7
8
|
export default function NewConversationRequest() {
|
|
8
9
|
return <div class="new-conversation-request">
|
|
@@ -16,15 +17,30 @@ export default function NewConversationRequest() {
|
|
|
16
17
|
text="Approve Sender"
|
|
17
18
|
/>
|
|
18
19
|
<DeleteIconTextButton
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
event-click={(e) => AtomPopover.create(e.target as HTMLElement,{
|
|
21
|
+
nodeFactory: () => <div>
|
|
22
|
+
<div data-layout="vertical-flex">
|
|
23
|
+
<DeleteIconTextButton
|
|
24
|
+
data-click-event="block-sender"
|
|
25
|
+
icon="fad fa-shield-quartered"
|
|
26
|
+
data-color="red"
|
|
27
|
+
text="Block Sender"
|
|
28
|
+
/>
|
|
29
|
+
<ReportConversationSpam/>
|
|
30
|
+
<ReportConversationPhishing/>
|
|
31
|
+
</div>
|
|
32
|
+
</div>,
|
|
33
|
+
"anchor-bottom": "parent-top",
|
|
34
|
+
closeOnClick: true
|
|
35
|
+
})}
|
|
36
|
+
text="Block"
|
|
21
37
|
/>
|
|
22
38
|
</div>
|
|
23
|
-
<h6>If you believe this message contains spam or any harmful activity, we encourage you to please report them.</h6>
|
|
39
|
+
{/* <h6>If you believe this message contains spam or any harmful activity, we encourage you to please report them.</h6>
|
|
24
40
|
<div data-layout="flex-center">
|
|
25
41
|
<ReportConversationSpam/>
|
|
26
42
|
<ReportConversationPhishing/>
|
|
27
|
-
</div>
|
|
43
|
+
</div> */}
|
|
28
44
|
</div>
|
|
29
45
|
</div>;
|
|
30
46
|
}
|
|
@@ -7,20 +7,30 @@ import { DeleteIconTextButton } from "../../../../common/controls/buttons/IconBu
|
|
|
7
7
|
import type ConversationPage from "../ConversationPage";
|
|
8
8
|
|
|
9
9
|
UICommand.on<ConversationPage>("report-spam", async ({ control }) => {
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
const thread = control.mailsRepeater.items[0];
|
|
12
|
+
await control.conversationService.block(thread);
|
|
13
|
+
|
|
14
|
+
await PageNavigator.pushPageForResult(MiniComposePage, {
|
|
11
15
|
mailto: Mailto.create({ to: "report@esocialmail.com", subject: "Spam Report", body: "Attached email contains #Spam." }),
|
|
12
|
-
thread
|
|
16
|
+
thread,
|
|
13
17
|
asAttachment: true
|
|
14
18
|
});
|
|
19
|
+
|
|
15
20
|
});
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
UICommand.on<ConversationPage>("report-phishing", async ({ control }) => {
|
|
19
|
-
|
|
24
|
+
|
|
25
|
+
const thread = control.mailsRepeater.items[0];
|
|
26
|
+
await control.conversationService.block(thread);
|
|
27
|
+
|
|
28
|
+
await PageNavigator.pushPageForResult(MiniComposePage, {
|
|
20
29
|
mailto: Mailto.create({ to: "report@esocialmail.com", subject: "Phishing Report", body: "Attached email contains #Phishing." }),
|
|
21
30
|
thread: control.mailsRepeater.items[0],
|
|
22
31
|
asAttachment: true
|
|
23
32
|
});
|
|
33
|
+
|
|
24
34
|
});
|
|
25
35
|
|
|
26
36
|
export function ReportConversationPhishing() {
|
|
@@ -176,7 +176,8 @@ export default class MailsPage extends MasterDetailPage {
|
|
|
176
176
|
cancelToken
|
|
177
177
|
}))}
|
|
178
178
|
itemRenderer={(item: IMailboxContact) => {
|
|
179
|
-
const name = displayName(item)
|
|
179
|
+
const name = displayName(item);
|
|
180
|
+
const fullName = name + " " + item.emailAddress.emailAddress;
|
|
180
181
|
const subject = item.lastEmail?.subject;
|
|
181
182
|
const summary = item.lastEmail?.summary;
|
|
182
183
|
return <div
|
|
@@ -184,8 +185,13 @@ export default class MailsPage extends MasterDetailPage {
|
|
|
184
185
|
data-unread={item.unread > 0}>
|
|
185
186
|
<div
|
|
186
187
|
class="name"
|
|
187
|
-
title={
|
|
188
|
+
title={fullName}
|
|
188
189
|
text={name}/>
|
|
190
|
+
{/* <div
|
|
191
|
+
class="address"
|
|
192
|
+
text={item.emailAddress.emailAddress}
|
|
193
|
+
title={fullName}
|
|
194
|
+
/> */}
|
|
189
195
|
<div class="subject"
|
|
190
196
|
title={subject}
|
|
191
197
|
text={subject}/>
|
|
@@ -226,6 +232,11 @@ export default class MailsPage extends MasterDetailPage {
|
|
|
226
232
|
}));
|
|
227
233
|
}
|
|
228
234
|
|
|
235
|
+
@Action({ onEvent: MailAppEvents.refreshMailboxContacts })
|
|
236
|
+
refreshMailboxContacts() {
|
|
237
|
+
this.version++;
|
|
238
|
+
}
|
|
239
|
+
|
|
229
240
|
@Action({ onEvent: MailAppEvents.mailboxContactUpdated})
|
|
230
241
|
updateMailboxContact(mc: IMailboxContact) {
|
|
231
242
|
const { mailboxID , emailAddressID } = mc;
|