@social-mail/social-mail-client 1.8.274 → 1.8.276

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.
@@ -35248,18 +35248,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
35248
35248
  sendEmail() {
35249
35249
  return __awaiter(this, void 0, void 0, function* () {
35250
35250
  var _a, _b, _c;
35251
- if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
35252
- if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
35253
- alert("Cannot send empty email");
35254
- return;
35255
- }
35256
- }
35257
35251
  const {
35258
35252
  html,
35259
35253
  text
35260
35254
  } = this.editor.htmlTextContent;
35261
35255
  this.draft.htmlBody = html;
35262
35256
  this.draft.textBody = text;
35257
+ if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
35258
+ if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
35259
+ throw new Error("Cannot send empty email");
35260
+ }
35261
+ }
35263
35262
  yield this.save();
35264
35263
  const {
35265
35264
  prevSave