@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
@@ -23936,7 +23936,8 @@ System.register(["@web-atoms/core/dist/core/EventScope"], function (_export, _co
23936
23936
  }],
23937
23937
  execute: function () {
23938
23938
  _export("MailAppEvents", MailAppEvents = {
23939
- mailboxContactUpdated: EventScope.create()
23939
+ mailboxContactUpdated: EventScope.create(),
23940
+ refreshMailboxContacts: EventScope.create()
23940
23941
  });
23941
23942
  }
23942
23943
  };
@@ -35132,20 +35133,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../../../common
35132
35133
  UICommand.on("report-spam", _a => __awaiter(void 0, [_a], void 0, function* ({
35133
35134
  control
35134
35135
  }) {
35135
- PageNavigator.pushPage(MiniComposePage, {
35136
+ const thread = control.mailsRepeater.items[0];
35137
+ yield control.conversationService.block(thread);
35138
+ yield PageNavigator.pushPageForResult(MiniComposePage, {
35136
35139
  mailto: Mailto.create({
35137
35140
  to: "report@esocialmail.com",
35138
35141
  subject: "Spam Report",
35139
35142
  body: "Attached email contains #Spam."
35140
35143
  }),
35141
- thread: control.mailsRepeater.items[0],
35144
+ thread,
35142
35145
  asAttachment: true
35143
35146
  });
35144
35147
  }));
35145
35148
  UICommand.on("report-phishing", _a => __awaiter(void 0, [_a], void 0, function* ({
35146
35149
  control
35147
35150
  }) {
35148
- PageNavigator.pushPage(MiniComposePage, {
35151
+ const thread = control.mailsRepeater.items[0];
35152
+ yield control.conversationService.block(thread);
35153
+ yield PageNavigator.pushPageForResult(MiniComposePage, {
35149
35154
  mailto: Mailto.create({
35150
35155
  to: "report@esocialmail.com",
35151
35156
  subject: "Phishing Report",
@@ -35162,10 +35167,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../../../common
35162
35167
 
35163
35168
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/commands/NewConversationRequest");
35164
35169
 
35165
- System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls/buttons/IconButton", "./ReportConversationCommand", "./NewConversationRequest.local.css"], function (_export, _context) {
35170
+ 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) {
35166
35171
  "use strict";
35167
35172
 
35168
- var XNode, AddIconTextButton, DeleteIconTextButton, ReportConversationSpam, ReportConversationPhishing;
35173
+ var XNode, AddIconTextButton, DeleteIconTextButton, ReportConversationSpam, ReportConversationPhishing, AtomPopover;
35169
35174
  function NewConversationRequest() {
35170
35175
  return XNode.create("div", {
35171
35176
  class: "new-conversation-request"
@@ -35175,11 +35180,20 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
35175
35180
  "data-click-event": "approve-sender",
35176
35181
  text: "Approve Sender"
35177
35182
  }), XNode.create(DeleteIconTextButton, {
35178
- "data-click-event": "block-sender",
35179
- text: "Block Sender"
35180
- })), 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", {
35181
- "data-layout": "flex-center"
35182
- }, XNode.create(ReportConversationSpam, null), XNode.create(ReportConversationPhishing, null))));
35183
+ "event-click": e => AtomPopover.create(e.target, {
35184
+ nodeFactory: () => XNode.create("div", null, XNode.create("div", {
35185
+ "data-layout": "vertical-flex"
35186
+ }, XNode.create(DeleteIconTextButton, {
35187
+ "data-click-event": "block-sender",
35188
+ icon: "fad fa-shield-quartered",
35189
+ "data-color": "red",
35190
+ text: "Block Sender"
35191
+ }), XNode.create(ReportConversationSpam, null), XNode.create(ReportConversationPhishing, null))),
35192
+ "anchor-bottom": "parent-top",
35193
+ closeOnClick: true
35194
+ }),
35195
+ text: "Block"
35196
+ }))));
35183
35197
  }
35184
35198
  _export("default", NewConversationRequest);
35185
35199
  return {
@@ -35191,7 +35205,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
35191
35205
  }, function (_ReportConversationCommand) {
35192
35206
  ReportConversationSpam = _ReportConversationCommand.ReportConversationSpam;
35193
35207
  ReportConversationPhishing = _ReportConversationCommand.ReportConversationPhishing;
35194
- }, function (_NewConversationRequestLocalCss) {}],
35208
+ }, function (_NewConversationRequestLocalCss) {}, function (_webAtomsWebControlsDistBasicElementsAtomPopover) {
35209
+ AtomPopover = _webAtomsWebControlsDistBasicElementsAtomPopover.default;
35210
+ }],
35195
35211
  execute: function () {}
35196
35212
  };
35197
35213
  });
@@ -35199,10 +35215,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../common/controls
35199
35215
 
35200
35216
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/ConversationPage");
35201
35217
 
35202
- 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) {
35218
+ 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) {
35203
35219
  "use strict";
35204
35220
 
35205
- 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;
35221
+ 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;
35206
35222
  _export("default", void 0);
35207
35223
  return {
35208
35224
  setters: [function (_tslib) {
@@ -35293,6 +35309,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35293
35309
  ReportSpamCommand = _commandsReportEmailCommand.ReportSpamCommand;
35294
35310
  }, function (_commandsNewConversationRequest) {
35295
35311
  NewConversationRequest = _commandsNewConversationRequest.default;
35312
+ }, function (_commandsMailAppEvents) {
35313
+ MailAppEvents = _commandsMailAppEvents.MailAppEvents;
35296
35314
  }],
35297
35315
  execute: function () {
35298
35316
  itemCss = "conversation-page-item-css";
@@ -35617,6 +35635,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35617
35635
  this.parameters.folderTagID = SocialMailApp.contactsFolderTagID;
35618
35636
  yield es.save(this.parameters, c => c);
35619
35637
  this.showComposeButton();
35638
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
35620
35639
  });
35621
35640
  }
35622
35641
  onClick(a, e) {
@@ -35859,11 +35878,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35859
35878
  blockSender() {
35860
35879
  return __awaiter(this, void 0, void 0, function* () {
35861
35880
  yield this.conversationService.block(this.parameters);
35881
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
35862
35882
  });
35863
35883
  }
35864
35884
  unblockSender() {
35865
35885
  return __awaiter(this, void 0, void 0, function* () {
35866
35886
  yield this.conversationService.block(this.parameters);
35887
+ MailAppEvents.refreshMailboxContacts.dispatchEvent(this.parameters);
35867
35888
  });
35868
35889
  }
35869
35890
  viewEngagements(thread) {
@@ -38071,6 +38092,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
38071
38092
  this.search = null;
38072
38093
  this.showSearch = false;
38073
38094
  this.lastSearch = void 0;
38095
+ this.isFirstSearch = true;
38074
38096
  setTimeout(() => this.load().catch(console.error), 1);
38075
38097
  }
38076
38098
  load() {
@@ -38105,7 +38127,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
38105
38127
  this.add(this.channels, ...channels);
38106
38128
  this.add(this.drives, ...drives);
38107
38129
  this.add(this.websites, ...websites);
38108
- this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
38130
+ if (this.isFirstSearch) {
38131
+ this.showSearch = [this.mailboxes, this.channels, this.websites].some(x => x.length > 2);
38132
+ this.isFirstSearch = false;
38133
+ }
38109
38134
  });
38110
38135
  }
38111
38136
  addMailbox(mb) {
@@ -38481,7 +38506,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
38481
38506
  })), {
38482
38507
  itemRenderer: item => {
38483
38508
  var _a, _b;
38484
- const name = displayName(item) + " " + item.emailAddress.emailAddress;
38509
+ const name = displayName(item);
38510
+ const fullName = name + " " + item.emailAddress.emailAddress;
38485
38511
  const subject = (_a = item.lastEmail) === null || _a === void 0 ? void 0 : _a.subject;
38486
38512
  const summary = (_b = item.lastEmail) === null || _b === void 0 ? void 0 : _b.summary;
38487
38513
  return XNode.create("div", {
@@ -38489,7 +38515,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
38489
38515
  "data-unread": item.unread > 0
38490
38516
  }, XNode.create("div", {
38491
38517
  class: "name",
38492
- title: name,
38518
+ title: fullName,
38493
38519
  text: name
38494
38520
  }), XNode.create("div", {
38495
38521
  class: "subject",
@@ -38532,6 +38558,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
38532
38558
  }));
38533
38559
  });
38534
38560
  }
38561
+ refreshMailboxContacts() {
38562
+ this.version++;
38563
+ }
38535
38564
  updateMailboxContact(mc) {
38536
38565
  const {
38537
38566
  mailboxID,
@@ -38635,6 +38664,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
38635
38664
  });
38636
38665
  __decorate([InjectProperty, __metadata("design:type", MailService)], MailsPage.prototype, "mailService", void 0);
38637
38666
  __decorate([InjectProperty, __metadata("design:type", MenuService)], MailsPage.prototype, "menuService", void 0);
38667
+ __decorate([Action({
38668
+ onEvent: MailAppEvents.refreshMailboxContacts
38669
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0)], MailsPage.prototype, "refreshMailboxContacts", null);
38638
38670
  __decorate([Action({
38639
38671
  onEvent: MailAppEvents.mailboxContactUpdated
38640
38672
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], MailsPage.prototype, "updateMailboxContact", null);