@social-mail/social-mail-client 1.4.5 → 1.4.7
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 +16 -4
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +4 -4
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/SocialMailApp.d.ts +2 -0
- package/dist/common/SocialMailApp.d.ts.map +1 -1
- package/dist/common/SocialMailApp.js +2 -0
- package/dist/common/SocialMailApp.js.map +1 -1
- package/dist/common/controls/file-preview/FilePreview.d.ts.map +1 -1
- package/dist/common/controls/file-preview/FilePreview.js +2 -1
- package/dist/common/controls/file-preview/FilePreview.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js +2 -0
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.js +2 -0
- package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +16 -4
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +4 -4
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +16 -4
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +4 -4
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +2 -1
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/service/MailService.d.ts +2 -0
- package/dist/web/page/mails/service/MailService.d.ts.map +1 -1
- package/dist/web/page/mails/service/MailService.js +10 -2
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/package.json +1 -1
- package/src/common/SocialMailApp.ts +3 -0
- package/src/common/controls/file-preview/FilePreview.tsx +3 -1
- package/src/web/page/mails/ConversationPage.tsx +2 -1
- package/src/web/page/mails/service/MailService.ts +8 -0
|
@@ -20701,6 +20701,8 @@ System.register([], function (_export, _context) {
|
|
|
20701
20701
|
};
|
|
20702
20702
|
_export("default", SocialMailApp = class SocialMailApp {});
|
|
20703
20703
|
SocialMailApp.config = socialMail;
|
|
20704
|
+
SocialMailApp.newFolderTagID = null;
|
|
20705
|
+
SocialMailApp.contactsFolderTagID = null;
|
|
20704
20706
|
}
|
|
20705
20707
|
};
|
|
20706
20708
|
});
|
|
@@ -29501,10 +29503,10 @@ System.register(["@web-atoms/core/dist/core/EventScope"], function (_export, _co
|
|
|
29501
29503
|
|
|
29502
29504
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/events/CommonEvents");
|
|
29503
29505
|
|
|
29504
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "../../../../common/events/CommonEvents", "@web-atoms/core/dist/services/FetchBuilder", "../../../../common/apiPath"], function (_export, _context) {
|
|
29506
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "../../../../common/events/CommonEvents", "@web-atoms/core/dist/services/FetchBuilder", "../../../../common/apiPath", "../../../../common/SocialMailApp"], function (_export, _context) {
|
|
29505
29507
|
"use strict";
|
|
29506
29508
|
|
|
29507
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, AppFile, Mailbox, MailboxContact, UserPushSubscription, Sql, CommonEvents, FetchBuilder, apiPath, MailService;
|
|
29509
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, AppFile, Mailbox, MailboxContact, UserPushSubscription, Sql, CommonEvents, FetchBuilder, apiPath, SocialMailApp, MailService;
|
|
29508
29510
|
return {
|
|
29509
29511
|
setters: [function (_tslib) {
|
|
29510
29512
|
__awaiter = _tslib.__awaiter;
|
|
@@ -29529,9 +29531,14 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
29529
29531
|
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
29530
29532
|
}, function (_commonApiPath) {
|
|
29531
29533
|
apiPath = _commonApiPath.apiPath;
|
|
29534
|
+
}, function (_commonSocialMailApp) {
|
|
29535
|
+
SocialMailApp = _commonSocialMailApp.default;
|
|
29532
29536
|
}],
|
|
29533
29537
|
execute: function () {
|
|
29534
29538
|
MailService = class MailService {
|
|
29539
|
+
constructor() {
|
|
29540
|
+
this.tags = new Map();
|
|
29541
|
+
}
|
|
29535
29542
|
mailbox(mailboxID) {
|
|
29536
29543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29537
29544
|
const mb = yield this.entityService.query(Mailbox).where({
|
|
@@ -29544,8 +29551,11 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
29544
29551
|
const index = x => {
|
|
29545
29552
|
switch (x.tag.name.toLocaleLowerCase()) {
|
|
29546
29553
|
case "contacts":
|
|
29554
|
+
SocialMailApp.contactsFolderTagID = x.tagID;
|
|
29547
29555
|
return 1;
|
|
29548
29556
|
case "new":
|
|
29557
|
+
this.newTagID = x.tagID;
|
|
29558
|
+
SocialMailApp.newFolderTagID = x.tagID;
|
|
29549
29559
|
return 2;
|
|
29550
29560
|
case "spam":
|
|
29551
29561
|
return 3;
|
|
@@ -36164,8 +36174,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/
|
|
|
36164
36174
|
appFileID,
|
|
36165
36175
|
name,
|
|
36166
36176
|
fileContentID,
|
|
36167
|
-
url
|
|
36177
|
+
url: rawUrl
|
|
36168
36178
|
} = a;
|
|
36179
|
+
const url = encodeURIComponent(rawUrl);
|
|
36169
36180
|
let src = FileUrlService.webP(a, 300);
|
|
36170
36181
|
if (/^audio\//i.test(a.contentType)) {
|
|
36171
36182
|
src = audioIcon;
|
|
@@ -41915,7 +41926,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41915
41926
|
});
|
|
41916
41927
|
}
|
|
41917
41928
|
showComposeButton(email = null) {
|
|
41918
|
-
if (this.parameters.newRequest) {
|
|
41929
|
+
if (this.parameters.newRequest || this.parameters.folderTagID === SocialMailApp.newFolderTagID) {
|
|
41919
41930
|
this.footerRenderer = () => XNode.create("div", null, XNode.create("div", {
|
|
41920
41931
|
"data-layout": "vertical-flex-center-items"
|
|
41921
41932
|
}, XNode.create("h5", null, "This sender does not exist in your contacts, and this sender's emails will be restricted in future unless you approve the sender."), XNode.create(AddIconTextButton, {
|
|
@@ -41962,6 +41973,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41962
41973
|
const es = this.resolve(EntityService);
|
|
41963
41974
|
this.parameters.newRequest = false;
|
|
41964
41975
|
this.parameters.blocked = false;
|
|
41976
|
+
this.parameters.folderTagID = SocialMailApp.contactsFolderTagID;
|
|
41965
41977
|
yield es.save(this.parameters, c => c);
|
|
41966
41978
|
this.showComposeButton();
|
|
41967
41979
|
});
|