@social-mail/social-mail-client 1.8.286 → 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 +193 -19
- 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/site-editor-app/SiteEditorApp.pack.js +193 -19
- 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 +193 -19
- 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 +8 -10
- 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 +2 -1
- package/dist/web/page/mails/commands/ReportEmailCommand.d.ts.map +1 -1
- package/dist/web/page/mails/commands/ReportEmailCommand.js +39 -8
- package/dist/web/page/mails/commands/ReportEmailCommand.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/ConversationPage.tsx +8 -16
- 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 +25 -5
|
@@ -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
|
+
}
|
|
@@ -4,20 +4,40 @@ import AtomRepeater from "@web-atoms/web-controls/dist/basic/AtomRepeater";
|
|
|
4
4
|
import PageNavigator from "@web-atoms/web-controls/dist/PageNavigator";
|
|
5
5
|
import MiniComposePage from "../mini-compose/MiniComposePage";
|
|
6
6
|
import { MenuItem } from "@web-atoms/web-controls/dist/basic/PopupButton";
|
|
7
|
+
import { Mailto } from "../../../../common/Mailto";
|
|
7
8
|
|
|
8
|
-
UICommand.on<AtomRepeater>("report-
|
|
9
|
+
UICommand.on<AtomRepeater>("report-spam", async ({ data, control }) => {
|
|
9
10
|
PageNavigator.pushPage(MiniComposePage, {
|
|
10
|
-
mailto: "
|
|
11
|
+
mailto: Mailto.create({ to: "report@esocialmail.com", subject: "Spam Report", body: "Attached email contains #Spam." }),
|
|
11
12
|
thread: data,
|
|
12
13
|
asAttachment: true
|
|
13
14
|
});
|
|
14
15
|
});
|
|
15
16
|
|
|
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() {
|
|
17
37
|
return <MenuItem
|
|
18
|
-
data-click-event="report-
|
|
38
|
+
data-click-event="report-spam"
|
|
19
39
|
icon="fad fa-shield-quartered"
|
|
20
40
|
data-color="red"
|
|
21
|
-
label="Report"
|
|
41
|
+
label="Report Spam"
|
|
22
42
|
/>;
|
|
23
43
|
}
|