@social-mail/social-mail-client 1.8.285 → 1.8.287
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 +302 -10
- 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/ui-commands/UICommand.d.ts +22 -0
- package/dist/common/ui-commands/UICommand.d.ts.map +1 -0
- package/dist/common/ui-commands/UICommand.js +68 -0
- package/dist/common/ui-commands/UICommand.js.map +1 -0
- package/dist/site-editor-app/SiteEditorApp.pack.js +302 -10
- 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 +302 -10
- 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/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 +9 -9
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/commands/NewConversationRequest.d.ts +3 -0
- package/dist/web/page/mails/commands/NewConversationRequest.d.ts.map +1 -0
- package/dist/web/page/mails/commands/NewConversationRequest.js +34 -0
- package/dist/web/page/mails/commands/NewConversationRequest.js.map +1 -0
- package/dist/web/page/mails/commands/NewConversationRequest.local.css +2 -0
- package/dist/web/page/mails/commands/NewConversationRequest.local.css.map +1 -0
- package/dist/web/page/mails/commands/ReportConversationCommand.d.ts +3 -0
- package/dist/web/page/mails/commands/ReportConversationCommand.d.ts.map +1 -0
- package/dist/web/page/mails/commands/ReportConversationCommand.js +71 -0
- package/dist/web/page/mails/commands/ReportConversationCommand.js.map +1 -0
- package/dist/web/page/mails/commands/ReportEmailCommand.d.ts +3 -0
- package/dist/web/page/mails/commands/ReportEmailCommand.d.ts.map +1 -0
- package/dist/web/page/mails/commands/ReportEmailCommand.js +73 -0
- package/dist/web/page/mails/commands/ReportEmailCommand.js.map +1 -0
- package/package.json +1 -1
- package/src/common/ui-commands/UICommand.ts +83 -0
- package/src/web/page/mails/ConversationPage.tsx +8 -13
- package/src/web/page/mails/commands/NewConversationRequest.local.css +18 -0
- package/src/web/page/mails/commands/NewConversationRequest.tsx +30 -0
- package/src/web/page/mails/commands/ReportConversationCommand.tsx +43 -0
- package/src/web/page/mails/commands/ReportEmailCommand.tsx +43 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import { AddIconTextButton, DeleteIconTextButton } from "../../../../common/controls/buttons/IconButton";
|
|
3
|
+
import { ReportConversationSpam, ReportConversationPhishing } from "./ReportConversationCommand";
|
|
4
|
+
|
|
5
|
+
import "./NewConversationRequest.local.css";
|
|
6
|
+
|
|
7
|
+
export default function NewConversationRequest() {
|
|
8
|
+
return <div class="new-conversation-request">
|
|
9
|
+
<div>
|
|
10
|
+
<h5>This sender does not exist in your contacts, and this sender's emails will be restricted in future
|
|
11
|
+
unless you approve the sender.
|
|
12
|
+
</h5>
|
|
13
|
+
<div data-layout="flex-center">
|
|
14
|
+
<AddIconTextButton
|
|
15
|
+
data-click-event="approve-sender"
|
|
16
|
+
text="Approve Sender"
|
|
17
|
+
/>
|
|
18
|
+
<DeleteIconTextButton
|
|
19
|
+
data-click-event="block-sender"
|
|
20
|
+
text="Block Sender"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
<h6>If you believe this message contains spam or any harmful activity, we encourage you to please report them.</h6>
|
|
24
|
+
<div data-layout="flex-center">
|
|
25
|
+
<ReportConversationSpam/>
|
|
26
|
+
<ReportConversationPhishing/>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import UICommand from "../../../../common/ui-commands/UICommand";
|
|
3
|
+
import PageNavigator from "@web-atoms/web-controls/dist/PageNavigator";
|
|
4
|
+
import MiniComposePage from "../mini-compose/MiniComposePage";
|
|
5
|
+
import { Mailto } from "../../../../common/Mailto";
|
|
6
|
+
import { DeleteIconTextButton } from "../../../../common/controls/buttons/IconButton";
|
|
7
|
+
import type ConversationPage from "../ConversationPage";
|
|
8
|
+
|
|
9
|
+
UICommand.on<ConversationPage>("report-spam", async ({ control }) => {
|
|
10
|
+
PageNavigator.pushPage(MiniComposePage, {
|
|
11
|
+
mailto: Mailto.create({ to: "report@esocialmail.com", subject: "Spam Report", body: "Attached email contains #Spam." }),
|
|
12
|
+
thread: control.mailsRepeater.items[0],
|
|
13
|
+
asAttachment: true
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
UICommand.on<ConversationPage>("report-phishing", async ({ control }) => {
|
|
19
|
+
PageNavigator.pushPage(MiniComposePage, {
|
|
20
|
+
mailto: Mailto.create({ to: "report@esocialmail.com", subject: "Phishing Report", body: "Attached email contains #Phishing." }),
|
|
21
|
+
thread: control.mailsRepeater.items[0],
|
|
22
|
+
asAttachment: true
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function ReportConversationPhishing() {
|
|
27
|
+
return <DeleteIconTextButton
|
|
28
|
+
data-click-event="report-conversation-phishing"
|
|
29
|
+
icon="fad fa-shield-quartered"
|
|
30
|
+
data-color="red"
|
|
31
|
+
text="Report Phishing"
|
|
32
|
+
/>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export function ReportConversationSpam() {
|
|
37
|
+
return <DeleteIconTextButton
|
|
38
|
+
data-click-event="report-conversation-spam"
|
|
39
|
+
icon="fad fa-shield-quartered"
|
|
40
|
+
data-color="red"
|
|
41
|
+
text="Report Spam"
|
|
42
|
+
/>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import UICommand from "../../../../common/ui-commands/UICommand";
|
|
3
|
+
import AtomRepeater from "@web-atoms/web-controls/dist/basic/AtomRepeater";
|
|
4
|
+
import PageNavigator from "@web-atoms/web-controls/dist/PageNavigator";
|
|
5
|
+
import MiniComposePage from "../mini-compose/MiniComposePage";
|
|
6
|
+
import { MenuItem } from "@web-atoms/web-controls/dist/basic/PopupButton";
|
|
7
|
+
import { Mailto } from "../../../../common/Mailto";
|
|
8
|
+
|
|
9
|
+
UICommand.on<AtomRepeater>("report-spam", async ({ data, control }) => {
|
|
10
|
+
PageNavigator.pushPage(MiniComposePage, {
|
|
11
|
+
mailto: Mailto.create({ to: "report@esocialmail.com", subject: "Spam Report", body: "Attached email contains #Spam." }),
|
|
12
|
+
thread: data,
|
|
13
|
+
asAttachment: true
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
UICommand.on<AtomRepeater>("report-phishing", async ({ data, control }) => {
|
|
19
|
+
PageNavigator.pushPage(MiniComposePage, {
|
|
20
|
+
mailto: Mailto.create({ to: "report@esocialmail.com", subject: "Phishing Report", body: "Attached email contains #Phishing." }),
|
|
21
|
+
thread: data,
|
|
22
|
+
asAttachment: true
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function ReportPhishingCommand() {
|
|
27
|
+
return <MenuItem
|
|
28
|
+
data-click-event="report-phishing"
|
|
29
|
+
icon="fad fa-shield-quartered"
|
|
30
|
+
data-color="red"
|
|
31
|
+
label="Report Phishing"
|
|
32
|
+
/>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export function ReportSpamCommand() {
|
|
37
|
+
return <MenuItem
|
|
38
|
+
data-click-event="report-spam"
|
|
39
|
+
icon="fad fa-shield-quartered"
|
|
40
|
+
data-color="red"
|
|
41
|
+
label="Report Spam"
|
|
42
|
+
/>;
|
|
43
|
+
}
|