@social-mail/social-mail-client 1.2.586 → 1.2.587
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.
- package/dist/admin/AdminAppIndex.pack.js +27 -3
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +5 -5
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +3 -1
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/services/ffmpeg/FFService.d.ts.map +1 -1
- package/dist/services/ffmpeg/FFService.js +1 -1
- package/dist/services/ffmpeg/FFService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +27 -3
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +5 -5
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationTags.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationTags.js +1 -0
- package/dist/web/page/mails/ConversationTags.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +22 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +3 -1
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/package.json +1 -1
- package/src/services/ffmpeg/FFService.ts +0 -3
- package/src/web/page/mails/ConversationTags.tsx +1 -0
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +18 -0
- package/src/web/page/mails/service/ConversationService.tsx +10 -1
|
@@ -24355,6 +24355,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24355
24355
|
if (/^(IMG|VIDEO)$/.test(iterator.tagName)) {
|
|
24356
24356
|
const src = iterator.getAttribute("src");
|
|
24357
24357
|
iterator.setAttribute("controls", "true");
|
|
24358
|
+
iterator.setAttribute("crossorigin", "anonymous");
|
|
24358
24359
|
if (src) {
|
|
24359
24360
|
if (src.startsWith("cid:")) {
|
|
24360
24361
|
cid = src.substring(4);
|
|
@@ -24459,6 +24460,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24459
24460
|
if (saveAttachments) {
|
|
24460
24461
|
cloner = cloner.include(x => x.attachments);
|
|
24461
24462
|
}
|
|
24463
|
+
cloner = cloner.include(x => x.mailboxes).include(x => x.recipients).include(x => x.threadContacts);
|
|
24462
24464
|
yield this.entityService.save(cloner.copy);
|
|
24463
24465
|
return email;
|
|
24464
24466
|
}
|
|
@@ -24491,7 +24493,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24491
24493
|
}));
|
|
24492
24494
|
}
|
|
24493
24495
|
}
|
|
24494
|
-
yield this.entityService.save(email);
|
|
24496
|
+
yield this.entityService.save(email, c => c.include(x => x.mailboxes).include(x => x.recipients).include(x => x.threadContacts));
|
|
24495
24497
|
}
|
|
24496
24498
|
return email;
|
|
24497
24499
|
});
|
|
@@ -27860,7 +27862,7 @@ System.register(["tslib", "../../common/Modules"], function (_export, _context)
|
|
|
27860
27862
|
});
|
|
27861
27863
|
const outputName = targetFile.name + ".webm";
|
|
27862
27864
|
yield ffmpeg.writeFile(targetFile.name, yield fetchFile(targetFile));
|
|
27863
|
-
yield ffmpeg.exec(["-i", targetFile.name, "-fflags", "+genpts", "-preset", "ultrafast", "-
|
|
27865
|
+
yield ffmpeg.exec(["-i", targetFile.name, "-fflags", "+genpts", "-preset", "ultrafast", "-crf", "23", outputName]);
|
|
27864
27866
|
const buffer = yield ffmpeg.readFile(outputName);
|
|
27865
27867
|
return new File([buffer.buffer], outputName, {
|
|
27866
27868
|
type: "video/webm"
|
|
@@ -32149,7 +32151,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@social-mail/social-mail-cl
|
|
|
32149
32151
|
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) {
|
|
32150
32152
|
"use strict";
|
|
32151
32153
|
|
|
32152
|
-
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;
|
|
32154
|
+
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;
|
|
32153
32155
|
_export("default", void 0);
|
|
32154
32156
|
return {
|
|
32155
32157
|
setters: [function (_tslib) {
|
|
@@ -32285,6 +32287,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
32285
32287
|
<section contentEditable="true"> <br/></section>
|
|
32286
32288
|
<footer data-social-mail-commands="emoji-bar"></footer>
|
|
32287
32289
|
</section>`;
|
|
32290
|
+
addRecipient = (e, a, type) => {
|
|
32291
|
+
var _a, _b;
|
|
32292
|
+
if (!a) {
|
|
32293
|
+
return;
|
|
32294
|
+
}
|
|
32295
|
+
const r = (_a = e.recipients) !== null && _a !== void 0 ? _a : e.recipients = [];
|
|
32296
|
+
for (const er of a) {
|
|
32297
|
+
const et = (_b = er.emailAddressText) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
32298
|
+
if (r.some(x => {
|
|
32299
|
+
var _a;
|
|
32300
|
+
return x.emailAddressID ? x.emailAddressID === er.emailAddressID : ((_a = x.emailAddressText) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === et;
|
|
32301
|
+
})) {
|
|
32302
|
+
continue;
|
|
32303
|
+
}
|
|
32304
|
+
er.type = type;
|
|
32305
|
+
r.push(er);
|
|
32306
|
+
}
|
|
32307
|
+
};
|
|
32288
32308
|
_export("default", MiniComposeBox = class MiniComposeBox extends AtomControl {
|
|
32289
32309
|
constructor(app, e) {
|
|
32290
32310
|
super(app, e);
|
|
@@ -32609,6 +32629,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
32609
32629
|
yield prevSave;
|
|
32610
32630
|
}
|
|
32611
32631
|
this.draft.senderID = this.senderID;
|
|
32632
|
+
addRecipient(this.draft, this.to, "to");
|
|
32633
|
+
addRecipient(this.draft, this.cc, "cc");
|
|
32634
|
+
addRecipient(this.draft, this.bcc, "bcc");
|
|
32612
32635
|
this.draft = yield this.conversationService.draft(this.draft, this.mailboxContacts, true, saveAttachments, ct);
|
|
32613
32636
|
} catch (_a) {}
|
|
32614
32637
|
}))().catch(console.error);
|
|
@@ -35268,6 +35291,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/basic/AtomRepeater", "..
|
|
|
35268
35291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35269
35292
|
this.itemRenderer = item => XNode.create("a", {
|
|
35270
35293
|
"data-click-event": "open-tag",
|
|
35294
|
+
"data-text-decoration": "none",
|
|
35271
35295
|
href: `?tag=${item.tagID}`,
|
|
35272
35296
|
text: `#${item.tag.name} (${toKMBString(item.count)})`
|
|
35273
35297
|
});
|