@social-mail/social-mail-client 1.2.83 → 1.2.85
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 +100 -5
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/model/model.d.ts +102 -0
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +80 -1
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +81 -2
- 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/email/EmailContentDownloader.js +1 -1
- package/dist/services/email/EmailContentDownloader.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +100 -5
- 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/mini-compose/MiniComposeBox.d.ts +1 -0
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +18 -2
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/dist/web/page/mails/service/MailService.js +1 -1
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/package.json +1 -1
- package/src/model/model.ts +114 -0
- package/src/services/email/EmailContentDownloader.ts +1 -1
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +35 -15
- package/src/web/page/mails/service/MailService.ts +1 -1
|
@@ -13253,7 +13253,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13253
13253
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13254
13254
|
"use strict";
|
|
13255
13255
|
|
|
13256
|
-
var DateTime, Model, DefaultFactory, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, AppLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEmail, MailboxContactTag, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, ChannelConfig, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, UserStatusArray, User, UserPin, UserPushSubscription, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, LoginSession, TextDocument, Tag;
|
|
13256
|
+
var DateTime, Model, DefaultFactory, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, AppLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEmail, MailboxContactTag, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, ChannelConfig, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, UserStatusArray, User, UserPin, UserPushSubscription, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, LoginSession, TextDocument, Tag, Product, ProductPrice, AppLicense, VirtualServer, DnsZone, DnsZoneRecordTypeArray, DnsZoneRecord, DnsSigningKey;
|
|
13257
13257
|
return {
|
|
13258
13258
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13259
13259
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -13624,6 +13624,85 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13624
13624
|
name: "",
|
|
13625
13625
|
isSystemTag: false
|
|
13626
13626
|
}));
|
|
13627
|
+
_export("Product", Product = new Model("Product", ["productID"], {
|
|
13628
|
+
name: ""
|
|
13629
|
+
}));
|
|
13630
|
+
_export("ProductPrice", ProductPrice = new Model("ProductPrice", ["priceID"], {
|
|
13631
|
+
quantity: 0,
|
|
13632
|
+
amount: 0,
|
|
13633
|
+
isActive: false,
|
|
13634
|
+
currency: ""
|
|
13635
|
+
}));
|
|
13636
|
+
_export("AppLicense", AppLicense = new Model("AppLicense", ["licenseID", "priceID"], {
|
|
13637
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13638
|
+
dateExpiry: new DefaultFactory(() => new DateTime()),
|
|
13639
|
+
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
13640
|
+
maxCores: 0,
|
|
13641
|
+
licenseCode: ""
|
|
13642
|
+
}));
|
|
13643
|
+
_export("VirtualServer", VirtualServer = new Model("VirtualServer", ["serverID"], {
|
|
13644
|
+
serverName: "",
|
|
13645
|
+
active: false,
|
|
13646
|
+
host: "",
|
|
13647
|
+
maxStorageGB: 0
|
|
13648
|
+
}));
|
|
13649
|
+
_export("DnsZone", DnsZone = new Model("DnsZone", ["zoneID"], {
|
|
13650
|
+
zone: "",
|
|
13651
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13652
|
+
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
13653
|
+
}));
|
|
13654
|
+
_export("DnsZoneRecordTypeArray", DnsZoneRecordTypeArray = [{
|
|
13655
|
+
"label": "A",
|
|
13656
|
+
"value": "A"
|
|
13657
|
+
}, {
|
|
13658
|
+
"label": "AAAA",
|
|
13659
|
+
"value": "AAAA"
|
|
13660
|
+
}, {
|
|
13661
|
+
"label": "CNAME",
|
|
13662
|
+
"value": "CNAME"
|
|
13663
|
+
}, {
|
|
13664
|
+
"label": "MX",
|
|
13665
|
+
"value": "MX"
|
|
13666
|
+
}, {
|
|
13667
|
+
"label": "TXT",
|
|
13668
|
+
"value": "TXT"
|
|
13669
|
+
}, {
|
|
13670
|
+
"label": "PTR",
|
|
13671
|
+
"value": "PTR"
|
|
13672
|
+
}, {
|
|
13673
|
+
"label": "SRV",
|
|
13674
|
+
"value": "SRV"
|
|
13675
|
+
}, {
|
|
13676
|
+
"label": "CAA",
|
|
13677
|
+
"value": "CAA"
|
|
13678
|
+
}, {
|
|
13679
|
+
"label": "NS",
|
|
13680
|
+
"value": "NS"
|
|
13681
|
+
}, {
|
|
13682
|
+
"label": "SOA",
|
|
13683
|
+
"value": "SOA"
|
|
13684
|
+
}]);
|
|
13685
|
+
_export("DnsZoneRecord", DnsZoneRecord = new Model("DnsZoneRecord", ["recordID"], {
|
|
13686
|
+
disabled: false,
|
|
13687
|
+
name: "",
|
|
13688
|
+
type: "A",
|
|
13689
|
+
isAlias: false,
|
|
13690
|
+
value: "",
|
|
13691
|
+
ttl: 0,
|
|
13692
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13693
|
+
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
13694
|
+
hosted: false
|
|
13695
|
+
}));
|
|
13696
|
+
_export("DnsSigningKey", DnsSigningKey = new Model("DnsSigningKey", ["keyID"], {
|
|
13697
|
+
publicKey: "",
|
|
13698
|
+
digestAlgorithm: 0,
|
|
13699
|
+
signingAlgorithm: 0,
|
|
13700
|
+
digest: "",
|
|
13701
|
+
flags: 0,
|
|
13702
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13703
|
+
expiryDate: new DefaultFactory(() => new DateTime()),
|
|
13704
|
+
fileName: ""
|
|
13705
|
+
}));
|
|
13627
13706
|
}
|
|
13628
13707
|
};
|
|
13629
13708
|
});
|
|
@@ -21862,7 +21941,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21862
21941
|
if (!line.trim()) {
|
|
21863
21942
|
continue;
|
|
21864
21943
|
}
|
|
21865
|
-
email.subject || (email.subject = line.substring(0, 80));
|
|
21944
|
+
email.subject || (email.subject = line.trim().substring(0, 80));
|
|
21866
21945
|
break;
|
|
21867
21946
|
}
|
|
21868
21947
|
}
|
|
@@ -22169,7 +22248,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
22169
22248
|
let now = DateTime.now;
|
|
22170
22249
|
const minute = Math.floor(now.minute / 5);
|
|
22171
22250
|
now = now.addMinutes(-minute);
|
|
22172
|
-
const cacheVersion =
|
|
22251
|
+
const cacheVersion = email.dateUpdated ? DateTime.from(email.dateUpdated).msSinceEpoch.toString(36) : "-";
|
|
22173
22252
|
email.engagements = yield this.entityService.query(EmailEngagement).where({
|
|
22174
22253
|
emailID
|
|
22175
22254
|
}, p => x => x.emailID === p.emailID).toArray({
|
|
@@ -33445,7 +33524,18 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
33445
33524
|
this.render(XNode.create("div", null, XNode.create(MailHtmlEditor, {
|
|
33446
33525
|
toolbar: () => XNode.create("div", null, XNode.create(Toolbar, null, XNode.create(Insert, null), XNode.create(Separator, null), XNode.create(Bold, null), XNode.create(Italic, null), XNode.create(Underline, null), XNode.create(StrikeThrough, null), XNode.create(Align, {
|
|
33447
33526
|
alignment: "above"
|
|
33448
|
-
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null), XNode.create(Separator, null), XNode.create(ToggleEmoji, null))
|
|
33527
|
+
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null), XNode.create(Separator, null), XNode.create(ToggleEmoji, null)), XNode.create("input", {
|
|
33528
|
+
autofocus: true,
|
|
33529
|
+
"style-place-self": "stretch",
|
|
33530
|
+
"style-margin-left": "5px",
|
|
33531
|
+
"style-margin-right": "5px",
|
|
33532
|
+
"style-padding-left": "10px",
|
|
33533
|
+
"style-padding-right": "5px",
|
|
33534
|
+
"style-outline": "none",
|
|
33535
|
+
"style-border": "none",
|
|
33536
|
+
placeholder: "Subject ... ",
|
|
33537
|
+
value: Bind.sourceTwoWays(this, x => x.source.draft.subject)
|
|
33538
|
+
})),
|
|
33449
33539
|
"data-element": "editor",
|
|
33450
33540
|
"data-html-editor": "email-editor",
|
|
33451
33541
|
presenter: Bind.presenter(c => this.editor = c),
|
|
@@ -33511,6 +33601,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
33511
33601
|
if (!((_a = this.editor) === null || _a === void 0 ? void 0 : _a.htmlTextContent)) {
|
|
33512
33602
|
return;
|
|
33513
33603
|
}
|
|
33604
|
+
if (this.prevSave) {
|
|
33605
|
+
yield this.prevSave;
|
|
33606
|
+
}
|
|
33514
33607
|
(_b = this.draft) !== null && _b !== void 0 ? _b : this.draft = Email.create({
|
|
33515
33608
|
attachments: []
|
|
33516
33609
|
});
|
|
@@ -33520,7 +33613,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
33520
33613
|
} = this.editor.htmlTextContent;
|
|
33521
33614
|
this.draft.htmlBody = html;
|
|
33522
33615
|
this.draft.textBody = text;
|
|
33523
|
-
|
|
33616
|
+
this.prevSave = this.save();
|
|
33617
|
+
yield this.prevSave;
|
|
33524
33618
|
});
|
|
33525
33619
|
}
|
|
33526
33620
|
onEmailUnscheduled(mce) {
|
|
@@ -33548,6 +33642,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
33548
33642
|
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
33549
33643
|
yield this.mailService.send(this.draft);
|
|
33550
33644
|
this.draft = Email.create({
|
|
33645
|
+
subject: "",
|
|
33551
33646
|
htmlBody: `<div contentEditable="true"><p></p><br/></div>`,
|
|
33552
33647
|
attachments: []
|
|
33553
33648
|
});
|