@social-mail/social-mail-client 1.2.586 → 1.2.588

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 (30) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +33 -3
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +5 -5
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/public/channel/ChannelView.pack.js +3 -1
  6. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  7. package/dist/public/channel/ChannelView.pack.min.js +1 -1
  8. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  9. package/dist/services/ffmpeg/FFService.d.ts.map +1 -1
  10. package/dist/services/ffmpeg/FFService.js +1 -1
  11. package/dist/services/ffmpeg/FFService.js.map +1 -1
  12. package/dist/tsconfig.tsbuildinfo +1 -1
  13. package/dist/web/AppIndex.pack.js +33 -3
  14. package/dist/web/AppIndex.pack.js.map +1 -1
  15. package/dist/web/AppIndex.pack.min.js +5 -5
  16. package/dist/web/AppIndex.pack.min.js.map +1 -1
  17. package/dist/web/page/mails/ConversationTags.d.ts.map +1 -1
  18. package/dist/web/page/mails/ConversationTags.js +1 -0
  19. package/dist/web/page/mails/ConversationTags.js.map +1 -1
  20. package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
  21. package/dist/web/page/mails/mini-compose/MiniComposeBox.js +28 -1
  22. package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
  23. package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
  24. package/dist/web/page/mails/service/ConversationService.js +3 -1
  25. package/dist/web/page/mails/service/ConversationService.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/services/ffmpeg/FFService.ts +0 -3
  28. package/src/web/page/mails/ConversationTags.tsx +1 -0
  29. package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +22 -1
  30. package/src/web/page/mails/service/ConversationService.tsx +10 -1
@@ -24082,7 +24082,7 @@ System.register(["tslib", "../../common/Modules"], function (_export, _context)
24082
24082
  });
24083
24083
  const outputName = targetFile.name + ".webm";
24084
24084
  yield ffmpeg.writeFile(targetFile.name, yield fetchFile(targetFile));
24085
- yield ffmpeg.exec(["-i", targetFile.name, "-fflags", "+genpts", "-preset", "ultrafast", "-c:v", "libvpx", "-c:a", "libvorbis", "-crf", "23", "-threads", "0", outputName]);
24085
+ yield ffmpeg.exec(["-i", targetFile.name, "-fflags", "+genpts", "-preset", "ultrafast", "-crf", "23", outputName]);
24086
24086
  const buffer = yield ffmpeg.readFile(outputName);
24087
24087
  return new File([buffer.buffer], outputName, {
24088
24088
  type: "video/webm"
@@ -28861,6 +28861,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28861
28861
  if (/^(IMG|VIDEO)$/.test(iterator.tagName)) {
28862
28862
  const src = iterator.getAttribute("src");
28863
28863
  iterator.setAttribute("controls", "true");
28864
+ iterator.setAttribute("crossorigin", "anonymous");
28864
28865
  if (src) {
28865
28866
  if (src.startsWith("cid:")) {
28866
28867
  cid = src.substring(4);
@@ -28965,6 +28966,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28965
28966
  if (saveAttachments) {
28966
28967
  cloner = cloner.include(x => x.attachments);
28967
28968
  }
28969
+ cloner = cloner.include(x => x.mailboxes).include(x => x.recipients).include(x => x.threadContacts);
28968
28970
  yield this.entityService.save(cloner.copy);
28969
28971
  return email;
28970
28972
  }
@@ -28997,7 +28999,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28997
28999
  }));
28998
29000
  }
28999
29001
  }
29000
- yield this.entityService.save(email);
29002
+ yield this.entityService.save(email, c => c.include(x => x.mailboxes).include(x => x.recipients).include(x => x.threadContacts));
29001
29003
  }
29002
29004
  return email;
29003
29005
  });
@@ -40834,7 +40836,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@social-mail/social-mail-cl
40834
40836
  System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "../../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "../../../../common/controls/audio/AudioRecorder", "../service/ConversationService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/InjectProperty", "../../../../common/events/CommonEvents", "../service/MailService", "@web-atoms/date-time/dist/DateTime", "@web-atoms/core/dist/core/sleep", "../../../../common/controls/html/InlineHtmlEditorWithToolbar", "@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/Bold", "@web-atoms/web-controls/dist/html-editor/commands/Italic", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Underline", "@web-atoms/web-controls/dist/html-editor/commands/AddLink", "@web-atoms/web-controls/dist/html-editor/commands/Unlink", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "./Insert", "@web-atoms/date-time/dist/TimeSpan", "./Attach", "@web-atoms/core/dist/core/types", "../../../../common/controls/Loader", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/web-controls/dist/basic/TitleEditor", "../../../../common/controls/email-recipients/EmailRecipientChips"], function (_export, _context) {
40835
40837
  "use strict";
40836
40838
 
40837
- var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, EmailRecipient, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, CommonEvents, MailService, DateTime, sleep, MailHtmlEditor, Toolbar, Align, Bold, Italic, StrikeThrough, Underline, AddLink, Unlink, Separator, Insert, TimeSpan, Attach, CancelToken, Loader, descendentElementIterator, TitleEditor, EmailRecipientChips, MiniComposeBox, css, defaultEmailBody;
40839
+ var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, EmailRecipient, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, CommonEvents, MailService, DateTime, sleep, MailHtmlEditor, Toolbar, Align, Bold, Italic, StrikeThrough, Underline, AddLink, Unlink, Separator, Insert, TimeSpan, Attach, CancelToken, Loader, descendentElementIterator, TitleEditor, EmailRecipientChips, MiniComposeBox, css, defaultEmailBody, addRecipient;
40838
40840
  _export("default", void 0);
40839
40841
  return {
40840
40842
  setters: [function (_tslib) {
@@ -40970,6 +40972,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
40970
40972
  <section contentEditable="true">&nbsp;<br/></section>
40971
40973
  <footer data-social-mail-commands="emoji-bar"></footer>
40972
40974
  </section>`;
40975
+ addRecipient = (e, a, type) => {
40976
+ var _a, _b;
40977
+ if (!a) {
40978
+ return;
40979
+ }
40980
+ const r = (_a = e.recipients) !== null && _a !== void 0 ? _a : e.recipients = [];
40981
+ for (const er of a) {
40982
+ const et = (_b = er.emailAddressText) === null || _b === void 0 ? void 0 : _b.toLowerCase();
40983
+ if (r.some(x => {
40984
+ var _a;
40985
+ return x.emailAddressID ? x.emailAddressID === er.emailAddressID : ((_a = x.emailAddressText) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === et;
40986
+ })) {
40987
+ continue;
40988
+ }
40989
+ er.type = type;
40990
+ r.push(er);
40991
+ }
40992
+ };
40973
40993
  _export("default", MiniComposeBox = class MiniComposeBox extends AtomControl {
40974
40994
  constructor(app, e) {
40975
40995
  super(app, e);
@@ -41254,6 +41274,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
41254
41274
  this.draft.htmlBody = html;
41255
41275
  this.draft.textBody = text;
41256
41276
  yield this.save();
41277
+ const {
41278
+ prevSave
41279
+ } = this;
41280
+ if (prevSave) {
41281
+ yield prevSave;
41282
+ }
41257
41283
  this.draft.status = "scheduled";
41258
41284
  this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
41259
41285
  this.draft.dateUpdated = DateTime.now;
@@ -41294,6 +41320,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
41294
41320
  yield prevSave;
41295
41321
  }
41296
41322
  this.draft.senderID = this.senderID;
41323
+ addRecipient(this.draft, this.to, "to");
41324
+ addRecipient(this.draft, this.cc, "cc");
41325
+ addRecipient(this.draft, this.bcc, "bcc");
41297
41326
  this.draft = yield this.conversationService.draft(this.draft, this.mailboxContacts, true, saveAttachments, ct);
41298
41327
  } catch (_a) {}
41299
41328
  }))().catch(console.error);
@@ -43953,6 +43982,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/basic/AtomRepeater", "..
43953
43982
  return __awaiter(this, void 0, void 0, function* () {
43954
43983
  this.itemRenderer = item => XNode.create("a", {
43955
43984
  "data-click-event": "open-tag",
43985
+ "data-text-decoration": "none",
43956
43986
  href: `?tag=${item.tagID}`,
43957
43987
  text: `#${item.tag.name} (${toKMBString(item.count)})`
43958
43988
  });