@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
@@ -25446,6 +25446,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
25446
25446
  this.search = null;
25447
25447
  this.showSearch = false;
25448
25448
  this.lastSearch = void 0;
25449
+ this.isFirstSearch = true;
25449
25450
  setTimeout(() => this.load().catch(console.error), 1);
25450
25451
  }
25451
25452
  load() {
@@ -25480,7 +25481,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
25480
25481
  this.add(this.channels, ...channels);
25481
25482
  this.add(this.drives, ...drives);
25482
25483
  this.add(this.websites, ...websites);
25483
- this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
25484
+ if (this.isFirstSearch) {
25485
+ this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
25486
+ this.isFirstSearch = false;
25487
+ }
25484
25488
  });
25485
25489
  }
25486
25490
  addMailbox(mb) {
@@ -28199,7 +28203,8 @@ System.register(["@web-atoms/core/dist/core/EventScope"], function (_export, _co
28199
28203
  }],
28200
28204
  execute: function () {
28201
28205
  _export("MailAppEvents", MailAppEvents = {
28202
- mailboxContactUpdated: EventScope.create()
28206
+ mailboxContactUpdated: EventScope.create(),
28207
+ refreshMailboxContacts: EventScope.create()
28203
28208
  });
28204
28209
  }
28205
28210
  };
@@ -39428,20 +39433,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../../../common
39428
39433
  UICommand.on("report-spam", _a => __awaiter(void 0, [_a], void 0, function* ({
39429
39434
  control
39430
39435
  }) {
39431
- PageNavigator.pushPage(MiniComposePage, {
39436
+ const thread = control.mailsRepeater.items[0];
39437
+ yield control.conversationService.block(thread);
39438
+ yield PageNavigator.pushPageForResult(MiniComposePage, {
39432
39439
  mailto: Mailto.create({
39433
39440
  to: "report@esocialmail.com",
39434
39441
  subject: "Spam Report",
39435
39442
  body: "Attached email contains #Spam."
39436
39443
  }),
39437
- thread: control.mailsRepeater.items[0],
39444
+ thread,
39438
39445
  asAttachment: true
39439
39446
  });
39440
39447
  }));
39441
39448
  UICommand.on("report-phishing", _a => __awaiter(void 0, [_a], void 0, function* ({
39442
39449
  control
39443
39450
  }) {
39444
- PageNavigator.pushPage(MiniComposePage, {
39451
+ const thread = control.mailsRepeater.items[0];
39452
+ yield control.conversationService.block(thread);
39453
+ yield PageNavigator.pushPageForResult(MiniComposePage, {
39445
39454
  mailto: Mailto.create({
39446
39455
  to: "report@esocialmail.com",
39447
39456
  subject: "Phishing Report",
@@ -39458,10 +39467,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../../../common
39458
39467
 
39459
39468
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/commands/NewConversationRequest");
39460
39469
 
39461
- System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls/buttons/IconButton", "./ReportConversationCommand", "./NewConversationRequest.local.css"], function (_export, _context) {
39470
+ 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) {
39462
39471
  "use strict";
39463
39472
 
39464
- var XNode, AddIconTextButton, DeleteIconTextButton, ReportConversationSpam, ReportConversationPhishing;
39473
+ var XNode, AddIconTextButton, DeleteIconTextButton, ReportConversationSpam, ReportConversationPhishing, AtomPopover;
39465
39474
  function NewConversationRequest() {
39466
39475
  return XNode.create("div", {
39467
39476
  class: "new-conversation-request"
@@ -39471,11 +39480,20 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
39471
39480
  "data-click-event": "approve-sender",
39472
39481
  text: "Approve Sender"
39473
39482
  }), XNode.create(DeleteIconTextButton, {
39474
- "data-click-event": "block-sender",
39475
- text: "Block Sender"
39476
- })), 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", {
39477
- "data-layout": "flex-center"
39478
- }, XNode.create(ReportConversationSpam, null), XNode.create(ReportConversationPhishing, null))));
39483
+ "event-click": e => AtomPopover.create(e.target, {
39484
+ nodeFactory: () => XNode.create("div", null, XNode.create("div", {
39485
+ "data-layout": "vertical-flex"
39486
+ }, XNode.create(DeleteIconTextButton, {
39487
+ "data-click-event": "block-sender",
39488
+ icon: "fad fa-shield-quartered",
39489
+ "data-color": "red",
39490
+ text: "Block Sender"
39491
+ }), XNode.create(ReportConversationSpam, null), XNode.create(ReportConversationPhishing, null))),
39492
+ "anchor-bottom": "parent-top",
39493
+ closeOnClick: true
39494
+ }),
39495
+ text: "Block"
39496
+ }))));
39479
39497
  }
39480
39498
  _export("default", NewConversationRequest);
39481
39499
  return {
@@ -39487,7 +39505,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
39487
39505
  }, function (_ReportConversationCommand) {
39488
39506
  ReportConversationSpam = _ReportConversationCommand.ReportConversationSpam;
39489
39507
  ReportConversationPhishing = _ReportConversationCommand.ReportConversationPhishing;
39490
- }, function (_NewConversationRequestLocalCss) {}],
39508
+ }, function (_NewConversationRequestLocalCss) {}, function (_webAtomsWebControlsDistBasicElementsAtomPopover) {
39509
+ AtomPopover = _webAtomsWebControlsDistBasicElementsAtomPopover.default;
39510
+ }],
39491
39511
  execute: function () {}
39492
39512
  };
39493
39513
  });
@@ -39495,10 +39515,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
39495
39515
 
39496
39516
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/ConversationPage");
39497
39517
 
39498
- 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) {
39518
+ 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) {
39499
39519
  "use strict";
39500
39520
 
39501
- 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;
39521
+ 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;
39502
39522
  _export("default", void 0);
39503
39523
  return {
39504
39524
  setters: [function (_tslib) {
@@ -39589,6 +39609,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
39589
39609
  ReportSpamCommand = _commandsReportEmailCommand.ReportSpamCommand;
39590
39610
  }, function (_commandsNewConversationRequest) {
39591
39611
  NewConversationRequest = _commandsNewConversationRequest.default;
39612
+ }, function (_commandsMailAppEvents) {
39613
+ MailAppEvents = _commandsMailAppEvents.MailAppEvents;
39592
39614
  }],
39593
39615
  execute: function () {
39594
39616
  itemCss = "conversation-page-item-css";
@@ -39913,6 +39935,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
39913
39935
  this.parameters.folderTagID = SocialMailApp.contactsFolderTagID;
39914
39936
  yield es.save(this.parameters, c => c);
39915
39937
  this.showComposeButton();
39938
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
39916
39939
  });
39917
39940
  }
39918
39941
  onClick(a, e) {
@@ -40155,11 +40178,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
40155
40178
  blockSender() {
40156
40179
  return __awaiter(this, void 0, void 0, function* () {
40157
40180
  yield this.conversationService.block(this.parameters);
40181
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
40158
40182
  });
40159
40183
  }
40160
40184
  unblockSender() {
40161
40185
  return __awaiter(this, void 0, void 0, function* () {
40162
40186
  yield this.conversationService.block(this.parameters);
40187
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
40163
40188
  });
40164
40189
  }
40165
40190
  viewEngagements(thread) {
@@ -41883,7 +41908,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41883
41908
  })), {
41884
41909
  itemRenderer: item => {
41885
41910
  var _a, _b;
41886
- const name = displayName(item) + " " + item.emailAddress.emailAddress;
41911
+ const name = displayName(item);
41912
+ const fullName = name + " " + item.emailAddress.emailAddress;
41887
41913
  const subject = (_a = item.lastEmail) === null || _a === void 0 ? void 0 : _a.subject;
41888
41914
  const summary = (_b = item.lastEmail) === null || _b === void 0 ? void 0 : _b.summary;
41889
41915
  return XNode.create("div", {
@@ -41891,7 +41917,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41891
41917
  "data-unread": item.unread > 0
41892
41918
  }, XNode.create("div", {
41893
41919
  class: "name",
41894
- title: name,
41920
+ title: fullName,
41895
41921
  text: name
41896
41922
  }), XNode.create("div", {
41897
41923
  class: "subject",
@@ -41934,6 +41960,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41934
41960
  }));
41935
41961
  });
41936
41962
  }
41963
+ refreshMailboxContacts() {
41964
+ this.version++;
41965
+ }
41937
41966
  updateMailboxContact(mc) {
41938
41967
  const {
41939
41968
  mailboxID,
@@ -42037,6 +42066,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
42037
42066
  });
42038
42067
  __decorate([InjectProperty, __metadata("design:type", MailService)], MailsPage.prototype, "mailService", void 0);
42039
42068
  __decorate([InjectProperty, __metadata("design:type", MenuService)], MailsPage.prototype, "menuService", void 0);
42069
+ __decorate([Action({
42070
+ onEvent: MailAppEvents.refreshMailboxContacts
42071
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0)], MailsPage.prototype, "refreshMailboxContacts", null);
42040
42072
  __decorate([Action({
42041
42073
  onEvent: MailAppEvents.mailboxContactUpdated
42042
42074
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], MailsPage.prototype, "updateMailboxContact", null);