@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
|
@@ -15301,7 +15301,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
15301
15301
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
15302
15302
|
"use strict";
|
|
15303
15303
|
|
|
15304
|
-
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;
|
|
15304
|
+
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;
|
|
15305
15305
|
return {
|
|
15306
15306
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
15307
15307
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -15672,6 +15672,85 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15672
15672
|
name: "",
|
|
15673
15673
|
isSystemTag: false
|
|
15674
15674
|
}));
|
|
15675
|
+
_export("Product", Product = new Model("Product", ["productID"], {
|
|
15676
|
+
name: ""
|
|
15677
|
+
}));
|
|
15678
|
+
_export("ProductPrice", ProductPrice = new Model("ProductPrice", ["priceID"], {
|
|
15679
|
+
quantity: 0,
|
|
15680
|
+
amount: 0,
|
|
15681
|
+
isActive: false,
|
|
15682
|
+
currency: ""
|
|
15683
|
+
}));
|
|
15684
|
+
_export("AppLicense", AppLicense = new Model("AppLicense", ["licenseID", "priceID"], {
|
|
15685
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15686
|
+
dateExpiry: new DefaultFactory(() => new DateTime()),
|
|
15687
|
+
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
15688
|
+
maxCores: 0,
|
|
15689
|
+
licenseCode: ""
|
|
15690
|
+
}));
|
|
15691
|
+
_export("VirtualServer", VirtualServer = new Model("VirtualServer", ["serverID"], {
|
|
15692
|
+
serverName: "",
|
|
15693
|
+
active: false,
|
|
15694
|
+
host: "",
|
|
15695
|
+
maxStorageGB: 0
|
|
15696
|
+
}));
|
|
15697
|
+
_export("DnsZone", DnsZone = new Model("DnsZone", ["zoneID"], {
|
|
15698
|
+
zone: "",
|
|
15699
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15700
|
+
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
15701
|
+
}));
|
|
15702
|
+
_export("DnsZoneRecordTypeArray", DnsZoneRecordTypeArray = [{
|
|
15703
|
+
"label": "A",
|
|
15704
|
+
"value": "A"
|
|
15705
|
+
}, {
|
|
15706
|
+
"label": "AAAA",
|
|
15707
|
+
"value": "AAAA"
|
|
15708
|
+
}, {
|
|
15709
|
+
"label": "CNAME",
|
|
15710
|
+
"value": "CNAME"
|
|
15711
|
+
}, {
|
|
15712
|
+
"label": "MX",
|
|
15713
|
+
"value": "MX"
|
|
15714
|
+
}, {
|
|
15715
|
+
"label": "TXT",
|
|
15716
|
+
"value": "TXT"
|
|
15717
|
+
}, {
|
|
15718
|
+
"label": "PTR",
|
|
15719
|
+
"value": "PTR"
|
|
15720
|
+
}, {
|
|
15721
|
+
"label": "SRV",
|
|
15722
|
+
"value": "SRV"
|
|
15723
|
+
}, {
|
|
15724
|
+
"label": "CAA",
|
|
15725
|
+
"value": "CAA"
|
|
15726
|
+
}, {
|
|
15727
|
+
"label": "NS",
|
|
15728
|
+
"value": "NS"
|
|
15729
|
+
}, {
|
|
15730
|
+
"label": "SOA",
|
|
15731
|
+
"value": "SOA"
|
|
15732
|
+
}]);
|
|
15733
|
+
_export("DnsZoneRecord", DnsZoneRecord = new Model("DnsZoneRecord", ["recordID"], {
|
|
15734
|
+
disabled: false,
|
|
15735
|
+
name: "",
|
|
15736
|
+
type: "A",
|
|
15737
|
+
isAlias: false,
|
|
15738
|
+
value: "",
|
|
15739
|
+
ttl: 0,
|
|
15740
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15741
|
+
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
15742
|
+
hosted: false
|
|
15743
|
+
}));
|
|
15744
|
+
_export("DnsSigningKey", DnsSigningKey = new Model("DnsSigningKey", ["keyID"], {
|
|
15745
|
+
publicKey: "",
|
|
15746
|
+
digestAlgorithm: 0,
|
|
15747
|
+
signingAlgorithm: 0,
|
|
15748
|
+
digest: "",
|
|
15749
|
+
flags: 0,
|
|
15750
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15751
|
+
expiryDate: new DefaultFactory(() => new DateTime()),
|
|
15752
|
+
fileName: ""
|
|
15753
|
+
}));
|
|
15675
15754
|
}
|
|
15676
15755
|
};
|
|
15677
15756
|
});
|
|
@@ -17661,7 +17740,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
17661
17740
|
if (!line.trim()) {
|
|
17662
17741
|
continue;
|
|
17663
17742
|
}
|
|
17664
|
-
email.subject || (email.subject = line.substring(0, 80));
|
|
17743
|
+
email.subject || (email.subject = line.trim().substring(0, 80));
|
|
17665
17744
|
break;
|
|
17666
17745
|
}
|
|
17667
17746
|
}
|
|
@@ -18392,7 +18471,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
18392
18471
|
let now = DateTime.now;
|
|
18393
18472
|
const minute = Math.floor(now.minute / 5);
|
|
18394
18473
|
now = now.addMinutes(-minute);
|
|
18395
|
-
const cacheVersion =
|
|
18474
|
+
const cacheVersion = email.dateUpdated ? DateTime.from(email.dateUpdated).msSinceEpoch.toString(36) : "-";
|
|
18396
18475
|
email.engagements = yield this.entityService.query(EmailEngagement).where({
|
|
18397
18476
|
emailID
|
|
18398
18477
|
}, p => x => x.emailID === p.emailID).toArray({
|
|
@@ -26128,7 +26207,18 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
26128
26207
|
this.render(XNode.create("div", null, XNode.create(MailHtmlEditor, {
|
|
26129
26208
|
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, {
|
|
26130
26209
|
alignment: "above"
|
|
26131
|
-
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null), XNode.create(Separator, null), XNode.create(ToggleEmoji, null))
|
|
26210
|
+
}), XNode.create(Separator, null), XNode.create(AddLink, null), XNode.create(Unlink, null), XNode.create(Separator, null), XNode.create(ToggleEmoji, null)), XNode.create("input", {
|
|
26211
|
+
autofocus: true,
|
|
26212
|
+
"style-place-self": "stretch",
|
|
26213
|
+
"style-margin-left": "5px",
|
|
26214
|
+
"style-margin-right": "5px",
|
|
26215
|
+
"style-padding-left": "10px",
|
|
26216
|
+
"style-padding-right": "5px",
|
|
26217
|
+
"style-outline": "none",
|
|
26218
|
+
"style-border": "none",
|
|
26219
|
+
placeholder: "Subject ... ",
|
|
26220
|
+
value: Bind.sourceTwoWays(this, x => x.source.draft.subject)
|
|
26221
|
+
})),
|
|
26132
26222
|
"data-element": "editor",
|
|
26133
26223
|
"data-html-editor": "email-editor",
|
|
26134
26224
|
presenter: Bind.presenter(c => this.editor = c),
|
|
@@ -26194,6 +26284,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
26194
26284
|
if (!((_a = this.editor) === null || _a === void 0 ? void 0 : _a.htmlTextContent)) {
|
|
26195
26285
|
return;
|
|
26196
26286
|
}
|
|
26287
|
+
if (this.prevSave) {
|
|
26288
|
+
yield this.prevSave;
|
|
26289
|
+
}
|
|
26197
26290
|
(_b = this.draft) !== null && _b !== void 0 ? _b : this.draft = Email.create({
|
|
26198
26291
|
attachments: []
|
|
26199
26292
|
});
|
|
@@ -26203,7 +26296,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
26203
26296
|
} = this.editor.htmlTextContent;
|
|
26204
26297
|
this.draft.htmlBody = html;
|
|
26205
26298
|
this.draft.textBody = text;
|
|
26206
|
-
|
|
26299
|
+
this.prevSave = this.save();
|
|
26300
|
+
yield this.prevSave;
|
|
26207
26301
|
});
|
|
26208
26302
|
}
|
|
26209
26303
|
onEmailUnscheduled(mce) {
|
|
@@ -26231,6 +26325,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
26231
26325
|
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
26232
26326
|
yield this.mailService.send(this.draft);
|
|
26233
26327
|
this.draft = Email.create({
|
|
26328
|
+
subject: "",
|
|
26234
26329
|
htmlBody: `<div contentEditable="true"><p></p><br/></div>`,
|
|
26235
26330
|
attachments: []
|
|
26236
26331
|
});
|