@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.
Files changed (62) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +49 -17
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.local.css +1 -1
  4. package/dist/admin/AdminAppIndex.pack.local.css.map +1 -1
  5. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  6. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  7. package/dist/common/menu/MenuService.d.ts +1 -0
  8. package/dist/common/menu/MenuService.d.ts.map +1 -1
  9. package/dist/common/menu/MenuService.js +5 -1
  10. package/dist/common/menu/MenuService.js.map +1 -1
  11. package/dist/public/channel/ChannelApp.pack.js +2 -1
  12. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  13. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  14. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  15. package/dist/site-editor/drag-drop/DragDropHelper.js +0 -4
  16. package/dist/site-editor/drag-drop/DragDropHelper.js.map +1 -1
  17. package/dist/site-editor/editor/SelectedElement.d.ts.map +1 -1
  18. package/dist/site-editor/editor/SelectedElement.js +4 -0
  19. package/dist/site-editor/editor/SelectedElement.js.map +1 -1
  20. package/dist/site-editor-app/SiteEditorApp.pack.js +53 -21
  21. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  22. package/dist/site-editor-app/SiteEditorApp.pack.local.css +1 -1
  23. package/dist/site-editor-app/SiteEditorApp.pack.local.css.map +1 -1
  24. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  25. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/dist/web/AppIndex.pack.js +49 -17
  28. package/dist/web/AppIndex.pack.js.map +1 -1
  29. package/dist/web/AppIndex.pack.local.css +1 -1
  30. package/dist/web/AppIndex.pack.local.css.map +1 -1
  31. package/dist/web/AppIndex.pack.min.js +1 -1
  32. package/dist/web/AppIndex.pack.min.js.map +1 -1
  33. package/dist/web/commands/MailAppEvents.d.ts +1 -0
  34. package/dist/web/commands/MailAppEvents.d.ts.map +1 -1
  35. package/dist/web/commands/MailAppEvents.js +2 -1
  36. package/dist/web/commands/MailAppEvents.js.map +1 -1
  37. package/dist/web/page/mails/ConversationPage.d.ts +2 -1
  38. package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
  39. package/dist/web/page/mails/ConversationPage.js +7 -2
  40. package/dist/web/page/mails/ConversationPage.js.map +1 -1
  41. package/dist/web/page/mails/commands/NewConversationRequest.d.ts.map +1 -1
  42. package/dist/web/page/mails/commands/NewConversationRequest.js +19 -8
  43. package/dist/web/page/mails/commands/NewConversationRequest.js.map +1 -1
  44. package/dist/web/page/mails/commands/ReportConversationCommand.d.ts.map +1 -1
  45. package/dist/web/page/mails/commands/ReportConversationCommand.js +7 -3
  46. package/dist/web/page/mails/commands/ReportConversationCommand.js.map +1 -1
  47. package/dist/web/page/mails/contacts/MailboxContact.local.css +1 -1
  48. package/dist/web/page/mails/contacts/MailboxContact.local.css.map +1 -1
  49. package/dist/web/page/mails/contacts/MailboxContacts.d.ts +1 -0
  50. package/dist/web/page/mails/contacts/MailboxContacts.d.ts.map +1 -1
  51. package/dist/web/page/mails/contacts/MailboxContacts.js +9 -2
  52. package/dist/web/page/mails/contacts/MailboxContacts.js.map +1 -1
  53. package/package.json +1 -1
  54. package/src/common/menu/MenuService.tsx +6 -1
  55. package/src/site-editor/drag-drop/DragDropHelper.ts +4 -4
  56. package/src/site-editor/editor/SelectedElement.tsx +4 -0
  57. package/src/web/commands/MailAppEvents.ts +3 -1
  58. package/src/web/page/mails/ConversationPage.tsx +5 -1
  59. package/src/web/page/mails/commands/NewConversationRequest.tsx +20 -4
  60. package/src/web/page/mails/commands/ReportConversationCommand.tsx +13 -3
  61. package/src/web/page/mails/contacts/MailboxContact.local.css +2 -0
  62. 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
- private conversationService: ConversationService;
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
- data-click-event="block-sender"
20
- text="Block Sender"
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
- PageNavigator.pushPage(MiniComposePage, {
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: control.mailsRepeater.items[0],
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
- PageNavigator.pushPage(MiniComposePage, {
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() {
@@ -91,6 +91,8 @@
91
91
  & > .name {
92
92
  grid-row: 1;
93
93
  grid-column: 1;
94
+ font-size: larger;
95
+ font-weight: bold;
94
96
  overflow: hidden;
95
97
  white-space: nowrap;
96
98
  text-overflow: ellipsis;
@@ -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) + " " + item.emailAddress.emailAddress;
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={name}
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;