@social-mail/social-mail-client 1.8.271 → 1.8.273

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.
Files changed (29) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +11 -1
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/public/channel/ChannelApp.pack.js +13 -6
  6. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  7. package/dist/public/channel/ChannelApp.pack.min.js +1 -1
  8. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  9. package/dist/public/channel/pages/PublicChannelPage.js +1 -1
  10. package/dist/public/channel/pages/PublicChannelPage.js.map +1 -1
  11. package/dist/public/channel/pages/posts/ChannelPage.js +2 -5
  12. package/dist/public/channel/pages/posts/ChannelPage.js.map +1 -1
  13. package/dist/services/email/EmailContentDownloader.d.ts +2 -1
  14. package/dist/services/email/EmailContentDownloader.d.ts.map +1 -1
  15. package/dist/services/email/EmailContentDownloader.js +11 -1
  16. package/dist/services/email/EmailContentDownloader.js.map +1 -1
  17. package/dist/site-editor-app/SiteEditorApp.pack.js +11 -1
  18. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  19. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  20. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/dist/web/AppIndex.pack.js +11 -1
  23. package/dist/web/AppIndex.pack.js.map +1 -1
  24. package/dist/web/AppIndex.pack.min.js +1 -1
  25. package/dist/web/AppIndex.pack.min.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/public/channel/pages/PublicChannelPage.tsx +1 -1
  28. package/src/public/channel/pages/posts/ChannelPage.tsx +2 -2
  29. package/src/services/email/EmailContentDownloader.ts +8 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.8.271",
3
+ "version": "1.8.273",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -91,7 +91,7 @@ export default class PublicChannelPage extends ContentPage<{ channel, slug }> {
91
91
  const { email } = this;
92
92
  const { headerMessageID } = email;
93
93
  const { channel: { emailAddress: { emailAddress }} } = this;
94
- const subject = `${emoji}:${Number(email.emailID).toString(36)}:${headerMessageID}`;
94
+ const subject = `${emoji}:${BigInt(email.emailID).toString(36)}:${headerMessageID}`;
95
95
  const link = Mailto.create({ to: emailAddress, subject, body: emoji, inReplyTo: headerMessageID });
96
96
  // const link = `mailto:${channel.emailAddress.emailAddress}?subject=${subject}&body=${emoji}&in-reply-to=${headerMessageID}`;
97
97
  this.element.dispatchEvent(new CustomEvent("shareLink", {
@@ -150,8 +150,8 @@ export default class ChannelPage extends ContentPage {
150
150
  }
151
151
 
152
152
  const tasks = [];
153
- for(const { postID, email} of result.items) {
154
- tasks.push(this.downloader.downloadPost(email));
153
+ for(const ce of result.items) {
154
+ tasks.push(this.downloader.downloadPost(ce));
155
155
  }
156
156
 
157
157
  await Promise.all(tasks);
@@ -1,6 +1,6 @@
1
1
  import DISingleton from "@web-atoms/core/dist/di/DISingleton";
2
2
  import TaskManager from "@web-atoms/entity/dist/models/TaskManager";
3
- import { Email, EmailEngagement, IEmail, IMailboxContactEmail, MailboxContactEmail } from "../../model/model";
3
+ import { ChannelEmail, Email, EmailEngagement, IChannelEmail, IEmail, IMailboxContactEmail, MailboxContactEmail } from "../../model/model";
4
4
  import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder";
5
5
  import { Inject } from "@web-atoms/core/dist/di/Inject";
6
6
  import EntityService from "../EntityService";
@@ -16,6 +16,13 @@ export default class EmailContentDownloader extends TaskManager {
16
16
  @Inject
17
17
  entityService: EntityService;
18
18
 
19
+ async downloadPostContent(email: IChannelEmail) {
20
+ email.email.htmlBody ||= await this.entityService.run(ChannelEmail, "getBody", email, {
21
+ cacheVersion: CacheVersions.email,
22
+ cacheSeconds
23
+ } ).asText();
24
+ }
25
+
19
26
  async downloadPost(email: IEmail) {
20
27
  email.htmlBody ||= await this.entityService.run(Email, "getBody", email, {
21
28
  cacheVersion: CacheVersions.email,