@social-mail/social-mail-client 1.8.322 → 1.8.323

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 (55) 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-app/SiteEditorApp.pack.js +49 -17
  16. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  17. package/dist/site-editor-app/SiteEditorApp.pack.local.css +1 -1
  18. package/dist/site-editor-app/SiteEditorApp.pack.local.css.map +1 -1
  19. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  20. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/dist/web/AppIndex.pack.js +49 -17
  23. package/dist/web/AppIndex.pack.js.map +1 -1
  24. package/dist/web/AppIndex.pack.local.css +1 -1
  25. package/dist/web/AppIndex.pack.local.css.map +1 -1
  26. package/dist/web/AppIndex.pack.min.js +1 -1
  27. package/dist/web/AppIndex.pack.min.js.map +1 -1
  28. package/dist/web/commands/MailAppEvents.d.ts +1 -0
  29. package/dist/web/commands/MailAppEvents.d.ts.map +1 -1
  30. package/dist/web/commands/MailAppEvents.js +2 -1
  31. package/dist/web/commands/MailAppEvents.js.map +1 -1
  32. package/dist/web/page/mails/ConversationPage.d.ts +2 -1
  33. package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
  34. package/dist/web/page/mails/ConversationPage.js +7 -2
  35. package/dist/web/page/mails/ConversationPage.js.map +1 -1
  36. package/dist/web/page/mails/commands/NewConversationRequest.d.ts.map +1 -1
  37. package/dist/web/page/mails/commands/NewConversationRequest.js +19 -8
  38. package/dist/web/page/mails/commands/NewConversationRequest.js.map +1 -1
  39. package/dist/web/page/mails/commands/ReportConversationCommand.d.ts.map +1 -1
  40. package/dist/web/page/mails/commands/ReportConversationCommand.js +7 -3
  41. package/dist/web/page/mails/commands/ReportConversationCommand.js.map +1 -1
  42. package/dist/web/page/mails/contacts/MailboxContact.local.css +1 -1
  43. package/dist/web/page/mails/contacts/MailboxContact.local.css.map +1 -1
  44. package/dist/web/page/mails/contacts/MailboxContacts.d.ts +1 -0
  45. package/dist/web/page/mails/contacts/MailboxContacts.d.ts.map +1 -1
  46. package/dist/web/page/mails/contacts/MailboxContacts.js +9 -2
  47. package/dist/web/page/mails/contacts/MailboxContacts.js.map +1 -1
  48. package/package.json +1 -1
  49. package/src/common/menu/MenuService.tsx +6 -1
  50. package/src/web/commands/MailAppEvents.ts +3 -1
  51. package/src/web/page/mails/ConversationPage.tsx +5 -1
  52. package/src/web/page/mails/commands/NewConversationRequest.tsx +20 -4
  53. package/src/web/page/mails/commands/ReportConversationCommand.tsx +13 -3
  54. package/src/web/page/mails/contacts/MailboxContact.local.css +2 -0
  55. package/src/web/page/mails/contacts/MailboxContacts.tsx +13 -2
@@ -28873,7 +28873,8 @@ System.register(["@web-atoms/core/dist/core/EventScope"], function (_export, _co
28873
28873
  }],
28874
28874
  execute: function () {
28875
28875
  _export("MailAppEvents", MailAppEvents = {
28876
- mailboxContactUpdated: EventScope.create()
28876
+ mailboxContactUpdated: EventScope.create(),
28877
+ refreshMailboxContacts: EventScope.create()
28877
28878
  });
28878
28879
  }
28879
28880
  };
@@ -39038,20 +39039,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../../../common
39038
39039
  UICommand.on("report-spam", _a => __awaiter(void 0, [_a], void 0, function* ({
39039
39040
  control
39040
39041
  }) {
39041
- PageNavigator.pushPage(MiniComposePage, {
39042
+ const thread = control.mailsRepeater.items[0];
39043
+ yield control.conversationService.block(thread);
39044
+ yield PageNavigator.pushPageForResult(MiniComposePage, {
39042
39045
  mailto: Mailto.create({
39043
39046
  to: "report@esocialmail.com",
39044
39047
  subject: "Spam Report",
39045
39048
  body: "Attached email contains #Spam."
39046
39049
  }),
39047
- thread: control.mailsRepeater.items[0],
39050
+ thread,
39048
39051
  asAttachment: true
39049
39052
  });
39050
39053
  }));
39051
39054
  UICommand.on("report-phishing", _a => __awaiter(void 0, [_a], void 0, function* ({
39052
39055
  control
39053
39056
  }) {
39054
- PageNavigator.pushPage(MiniComposePage, {
39057
+ const thread = control.mailsRepeater.items[0];
39058
+ yield control.conversationService.block(thread);
39059
+ yield PageNavigator.pushPageForResult(MiniComposePage, {
39055
39060
  mailto: Mailto.create({
39056
39061
  to: "report@esocialmail.com",
39057
39062
  subject: "Phishing Report",
@@ -39068,10 +39073,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../../../common
39068
39073
 
39069
39074
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/commands/NewConversationRequest");
39070
39075
 
39071
- System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls/buttons/IconButton", "./ReportConversationCommand", "./NewConversationRequest.local.css"], function (_export, _context) {
39076
+ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls/buttons/IconButton", "./ReportConversationCommand", "./NewConversationRequest.local.css", "@web-atoms/web-controls/dist/basic/elements/AtomPopover"], function (_export, _context) {
39072
39077
  "use strict";
39073
39078
 
39074
- var XNode, AddIconTextButton, DeleteIconTextButton, ReportConversationSpam, ReportConversationPhishing;
39079
+ var XNode, AddIconTextButton, DeleteIconTextButton, ReportConversationSpam, ReportConversationPhishing, AtomPopover;
39075
39080
  function NewConversationRequest() {
39076
39081
  return XNode.create("div", {
39077
39082
  class: "new-conversation-request"
@@ -39081,11 +39086,20 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
39081
39086
  "data-click-event": "approve-sender",
39082
39087
  text: "Approve Sender"
39083
39088
  }), XNode.create(DeleteIconTextButton, {
39084
- "data-click-event": "block-sender",
39085
- text: "Block Sender"
39086
- })), XNode.create("h6", null, "If you believe this message contains spam or any harmful activity, we encourage you to please report them."), XNode.create("div", {
39087
- "data-layout": "flex-center"
39088
- }, XNode.create(ReportConversationSpam, null), XNode.create(ReportConversationPhishing, null))));
39089
+ "event-click": e => AtomPopover.create(e.target, {
39090
+ nodeFactory: () => XNode.create("div", null, XNode.create("div", {
39091
+ "data-layout": "vertical-flex"
39092
+ }, XNode.create(DeleteIconTextButton, {
39093
+ "data-click-event": "block-sender",
39094
+ icon: "fad fa-shield-quartered",
39095
+ "data-color": "red",
39096
+ text: "Block Sender"
39097
+ }), XNode.create(ReportConversationSpam, null), XNode.create(ReportConversationPhishing, null))),
39098
+ "anchor-bottom": "parent-top",
39099
+ closeOnClick: true
39100
+ }),
39101
+ text: "Block"
39102
+ }))));
39089
39103
  }
39090
39104
  _export("default", NewConversationRequest);
39091
39105
  return {
@@ -39097,7 +39111,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
39097
39111
  }, function (_ReportConversationCommand) {
39098
39112
  ReportConversationSpam = _ReportConversationCommand.ReportConversationSpam;
39099
39113
  ReportConversationPhishing = _ReportConversationCommand.ReportConversationPhishing;
39100
- }, function (_NewConversationRequestLocalCss) {}],
39114
+ }, function (_NewConversationRequestLocalCss) {}, function (_webAtomsWebControlsDistBasicElementsAtomPopover) {
39115
+ AtomPopover = _webAtomsWebControlsDistBasicElementsAtomPopover.default;
39116
+ }],
39101
39117
  execute: function () {}
39102
39118
  };
39103
39119
  });
@@ -39105,10 +39121,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
39105
39121
 
39106
39122
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/ConversationPage");
39107
39123
 
39108
- System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../common/controls/repeater/InfiniteRepeater", "./service/ConversationService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/basic/InlinePopupControl", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "../../../services/socket/sockets", "@web-atoms/web-controls/dist/basic/LimitedText", "../../../common/date/DateFormats", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../common/pages/logs/LogsPage", "../../../common/SocialMailApp", "./detail/MailDetailPage", "../../../common/controls/file-preview/FilePreview", "./mini-compose/MiniComposeBox", "@web-atoms/core/dist/web/core/AtomUI", "../../../common/events/CommonEvents", "@web-atoms/date-time/dist/DateTime", "../../../common/controls/emoji-picker/EmojiPicker", "../../../services/EntityService", "./engagements/EngagementDetails", "../../../common/apiPath", "../../../common/controls/buttons/IconButton", "./unsubscribe/UnsubscribeWindow", "./mini-compose/MiniComposePage", "@social-mail/social-mail-client/content/images/gif/loader.gif", "./conversation/ConversationTags", "./ConversationTagChips", "./web-hooks/WebHookListPage", "./styles/conversation-page.local.css", "@web-atoms/web-controls/dist/basic/elements/AtomPopover", "./commands/ReportEmailCommand", "./commands/NewConversationRequest"], function (_export, _context) {
39124
+ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../common/controls/repeater/InfiniteRepeater", "./service/ConversationService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/basic/InlinePopupControl", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "../../../services/socket/sockets", "@web-atoms/web-controls/dist/basic/LimitedText", "../../../common/date/DateFormats", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../common/pages/logs/LogsPage", "../../../common/SocialMailApp", "./detail/MailDetailPage", "../../../common/controls/file-preview/FilePreview", "./mini-compose/MiniComposeBox", "@web-atoms/core/dist/web/core/AtomUI", "../../../common/events/CommonEvents", "@web-atoms/date-time/dist/DateTime", "../../../common/controls/emoji-picker/EmojiPicker", "../../../services/EntityService", "./engagements/EngagementDetails", "../../../common/apiPath", "../../../common/controls/buttons/IconButton", "./unsubscribe/UnsubscribeWindow", "./mini-compose/MiniComposePage", "@social-mail/social-mail-client/content/images/gif/loader.gif", "./conversation/ConversationTags", "./ConversationTagChips", "./web-hooks/WebHookListPage", "./styles/conversation-page.local.css", "@web-atoms/web-controls/dist/basic/elements/AtomPopover", "./commands/ReportEmailCommand", "./commands/NewConversationRequest", "../../commands/MailAppEvents"], function (_export, _context) {
39109
39125
  "use strict";
39110
39126
 
39111
- var __awaiter, __decorate, __metadata, ContentPage, isMobileView, Email, EmailEngagement, EmailRecipient, MailboxContactEmail, Tag, XNode, AtomRepeater, InfiniteRepeater, ConversationService, renderMailPromise, InjectProperty, InlinePopupControl, Bind, Action, PageNavigator, MailboxSocket, LimitedText, DateFormats, MenuItem, PopupActionButton, LogsPage, SocialMailApp, MailDetailPage, FilePreview, MiniComposeBox, AncestorEnumerator, CommonEvents, DateTime, EmojiPicker, EntityService, EngagementDetails, apiPath, AddIconTextButton, DeleteIconTextButton, EditIconTextButton, UnsubscribeWindow, MiniComposePage, loaderImage, ConversationTags, ConversationTagChips, WebHookListPage, AtomPopover, ReportPhishingCommand, ReportSpamCommand, NewConversationRequest, ConversationPage, itemCss, css, id, fixLinks;
39127
+ var __awaiter, __decorate, __metadata, ContentPage, isMobileView, Email, EmailEngagement, EmailRecipient, MailboxContactEmail, Tag, XNode, AtomRepeater, InfiniteRepeater, ConversationService, renderMailPromise, InjectProperty, InlinePopupControl, Bind, Action, PageNavigator, MailboxSocket, LimitedText, DateFormats, MenuItem, PopupActionButton, LogsPage, SocialMailApp, MailDetailPage, FilePreview, MiniComposeBox, AncestorEnumerator, CommonEvents, DateTime, EmojiPicker, EntityService, EngagementDetails, apiPath, AddIconTextButton, DeleteIconTextButton, EditIconTextButton, UnsubscribeWindow, MiniComposePage, loaderImage, ConversationTags, ConversationTagChips, WebHookListPage, AtomPopover, ReportPhishingCommand, ReportSpamCommand, NewConversationRequest, MailAppEvents, ConversationPage, itemCss, css, id, fixLinks;
39112
39128
  _export("default", void 0);
39113
39129
  return {
39114
39130
  setters: [function (_tslib) {
@@ -39199,6 +39215,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
39199
39215
  ReportSpamCommand = _commandsReportEmailCommand.ReportSpamCommand;
39200
39216
  }, function (_commandsNewConversationRequest) {
39201
39217
  NewConversationRequest = _commandsNewConversationRequest.default;
39218
+ }, function (_commandsMailAppEvents) {
39219
+ MailAppEvents = _commandsMailAppEvents.MailAppEvents;
39202
39220
  }],
39203
39221
  execute: function () {
39204
39222
  itemCss = "conversation-page-item-css";
@@ -39523,6 +39541,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
39523
39541
  this.parameters.folderTagID = SocialMailApp.contactsFolderTagID;
39524
39542
  yield es.save(this.parameters, c => c);
39525
39543
  this.showComposeButton();
39544
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
39526
39545
  });
39527
39546
  }
39528
39547
  onClick(a, e) {
@@ -39765,11 +39784,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
39765
39784
  blockSender() {
39766
39785
  return __awaiter(this, void 0, void 0, function* () {
39767
39786
  yield this.conversationService.block(this.parameters);
39787
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
39768
39788
  });
39769
39789
  }
39770
39790
  unblockSender() {
39771
39791
  return __awaiter(this, void 0, void 0, function* () {
39772
39792
  yield this.conversationService.block(this.parameters);
39793
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
39773
39794
  });
39774
39795
  }
39775
39796
  viewEngagements(thread) {
@@ -41217,6 +41238,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
41217
41238
  this.search = null;
41218
41239
  this.showSearch = false;
41219
41240
  this.lastSearch = void 0;
41241
+ this.isFirstSearch = true;
41220
41242
  setTimeout(() => this.load().catch(console.error), 1);
41221
41243
  }
41222
41244
  load() {
@@ -41251,7 +41273,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
41251
41273
  this.add(this.channels, ...channels);
41252
41274
  this.add(this.drives, ...drives);
41253
41275
  this.add(this.websites, ...websites);
41254
- this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
41276
+ if (this.isFirstSearch) {
41277
+ this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
41278
+ this.isFirstSearch = false;
41279
+ }
41255
41280
  });
41256
41281
  }
41257
41282
  addMailbox(mb) {
@@ -41627,7 +41652,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41627
41652
  })), {
41628
41653
  itemRenderer: item => {
41629
41654
  var _a, _b;
41630
- const name = displayName(item) + " " + item.emailAddress.emailAddress;
41655
+ const name = displayName(item);
41656
+ const fullName = name + " " + item.emailAddress.emailAddress;
41631
41657
  const subject = (_a = item.lastEmail) === null || _a === void 0 ? void 0 : _a.subject;
41632
41658
  const summary = (_b = item.lastEmail) === null || _b === void 0 ? void 0 : _b.summary;
41633
41659
  return XNode.create("div", {
@@ -41635,7 +41661,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41635
41661
  "data-unread": item.unread > 0
41636
41662
  }, XNode.create("div", {
41637
41663
  class: "name",
41638
- title: name,
41664
+ title: fullName,
41639
41665
  text: name
41640
41666
  }), XNode.create("div", {
41641
41667
  class: "subject",
@@ -41678,6 +41704,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41678
41704
  }));
41679
41705
  });
41680
41706
  }
41707
+ refreshMailboxContacts() {
41708
+ this.version++;
41709
+ }
41681
41710
  updateMailboxContact(mc) {
41682
41711
  const {
41683
41712
  mailboxID,
@@ -41781,6 +41810,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41781
41810
  });
41782
41811
  __decorate([InjectProperty, __metadata("design:type", MailService)], MailsPage.prototype, "mailService", void 0);
41783
41812
  __decorate([InjectProperty, __metadata("design:type", MenuService)], MailsPage.prototype, "menuService", void 0);
41813
+ __decorate([Action({
41814
+ onEvent: MailAppEvents.refreshMailboxContacts
41815
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0)], MailsPage.prototype, "refreshMailboxContacts", null);
41784
41816
  __decorate([Action({
41785
41817
  onEvent: MailAppEvents.mailboxContactUpdated
41786
41818
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], MailsPage.prototype, "updateMailboxContact", null);