@social-mail/social-mail-client 1.8.275 → 1.8.277
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 +5 -6
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/CDN.d.ts.map +1 -1
- package/dist/common/CDN.js +6 -4
- package/dist/common/CDN.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.js +6 -4
- package/dist/public/channel/ChannelApp.pack.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +11 -10
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +5 -6
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.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 +5 -6
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/package.json +1 -1
- package/src/common/CDN.ts +10 -5
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +4 -5
|
@@ -31606,18 +31606,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
31606
31606
|
sendEmail() {
|
|
31607
31607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31608
31608
|
var _a, _b, _c;
|
|
31609
|
-
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
31610
|
-
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
31611
|
-
alert("Cannot send empty email");
|
|
31612
|
-
return;
|
|
31613
|
-
}
|
|
31614
|
-
}
|
|
31615
31609
|
const {
|
|
31616
31610
|
html,
|
|
31617
31611
|
text
|
|
31618
31612
|
} = this.editor.htmlTextContent;
|
|
31619
31613
|
this.draft.htmlBody = html;
|
|
31620
31614
|
this.draft.textBody = text;
|
|
31615
|
+
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
31616
|
+
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
31617
|
+
throw new Error("Cannot send empty email");
|
|
31618
|
+
}
|
|
31619
|
+
}
|
|
31621
31620
|
yield this.save();
|
|
31622
31621
|
const {
|
|
31623
31622
|
prevSave
|