@social-mail/social-mail-client 1.9.94 → 1.9.96

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 (28) hide show
  1. package/content/templates/plain/blank.html +38 -0
  2. package/dist/admin/AdminAppIndex.pack.js +29 -25
  3. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  5. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  6. package/dist/common/pages/files/service/CloudFileService.d.ts +2 -0
  7. package/dist/common/pages/files/service/CloudFileService.d.ts.map +1 -1
  8. package/dist/common/pages/files/service/CloudFileService.js +6 -4
  9. package/dist/common/pages/files/service/CloudFileService.js.map +1 -1
  10. package/dist/services/files/LocalFileService.js +23 -21
  11. package/dist/services/files/LocalFileService.js.map +1 -1
  12. package/dist/site-editor-app/SiteEditorApp.pack.js +61 -28
  13. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  14. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  15. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  16. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts +1 -0
  17. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
  18. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js +32 -3
  19. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
  20. package/dist/tsconfig.tsbuildinfo +1 -1
  21. package/dist/web/AppIndex.pack.js +29 -25
  22. package/dist/web/AppIndex.pack.js.map +1 -1
  23. package/dist/web/AppIndex.pack.min.js +1 -1
  24. package/dist/web/AppIndex.pack.min.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/common/pages/files/service/CloudFileService.ts +5 -4
  27. package/src/services/files/LocalFileService.tsx +19 -17
  28. package/src/site-editor-app/pages/websites/studio/WebSiteStudioPage.tsx +31 -1
@@ -22803,30 +22803,32 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
22803
22803
  text: Bind.source(file, x => x.source.error)
22804
22804
  }))
22805
22805
  })));
22806
- try {
22807
- const ct = new CancelToken();
22808
- this.registerDisposable({
22809
- dispose: () => {
22810
- ct.cancel();
22806
+ this.app.runAsync(() => __awaiter(this, void 0, void 0, function* () {
22807
+ try {
22808
+ const ct = new CancelToken();
22809
+ this.registerDisposable({
22810
+ dispose: () => {
22811
+ ct.cancel();
22812
+ }
22813
+ });
22814
+ const tasks = this.files.map(x => x.promise);
22815
+ const files = yield Promise.all(tasks);
22816
+ const extra = this.parameters.extra;
22817
+ this.close({
22818
+ files,
22819
+ extra
22820
+ });
22821
+ } catch (error) {
22822
+ if (CancelToken.isCancelled(error)) {
22823
+ this.cancel(error);
22824
+ return;
22811
22825
  }
22812
- });
22813
- const tasks = this.files.map(x => x.promise);
22814
- const files = yield Promise.all(tasks);
22815
- const extra = this.parameters.extra;
22816
- this.close({
22817
- files,
22818
- extra
22819
- });
22820
- } catch (error) {
22821
- if (CancelToken.isCancelled(error)) {
22826
+ yield PopupService.alert({
22827
+ message: error
22828
+ });
22822
22829
  this.cancel(error);
22823
- return;
22824
22830
  }
22825
- yield PopupService.alert({
22826
- message: error
22827
- });
22828
- this.cancel(error);
22829
- }
22831
+ }));
22830
22832
  });
22831
22833
  }
22832
22834
  };
@@ -23019,7 +23021,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
23019
23021
  return __awaiter(this, arguments, void 0, function* (id, cancelToken = null) {
23020
23022
  const folder = yield this.entityService.query(AppFile).where({
23021
23023
  id
23022
- }, p => x => x.appFileID === p.id).include(x => x.creator).firstOrDefault({
23024
+ }, p => x => x.appFileID === p.id && x.isDeleted === false).include(x => x.creator).firstOrDefault({
23023
23025
  cancelToken
23024
23026
  });
23025
23027
  folder.children = [];
@@ -23042,7 +23044,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
23042
23044
  const path = root.path + "%";
23043
23045
  const files = yield this.entityService.query(AppFile).where({
23044
23046
  path
23045
- }, p => x => Sql.text.like(x.path, p.path) && x.isDeleted === false && (x.contentType === "text/html" || x.isFolder === true)).include(x => x.creator).include(x => x.children).toArray({
23047
+ }, p => x => Sql.text.like(x.path, p.path) && x.isDeleted === false && (x.contentType === "text/html" || x.isFolder === true)).include(x => x.creator).toArray({
23046
23048
  cancelToken
23047
23049
  });
23048
23050
  root.children = [];
@@ -23270,12 +23272,14 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
23270
23272
  appFileID,
23271
23273
  content,
23272
23274
  parentID,
23273
- folder
23275
+ folder,
23276
+ name
23274
23277
  } = fm;
23275
23278
  return this.localFileService.uploadFile(content, {
23276
23279
  appFileID,
23277
23280
  parentID,
23278
- folder
23281
+ folder,
23282
+ name
23279
23283
  });
23280
23284
  });
23281
23285
  }