@social-mail/social-mail-client 1.9.94 → 1.9.95
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 +23 -21
- 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/services/files/LocalFileService.js +23 -21
- package/dist/services/files/LocalFileService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +23 -21
- 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 +23 -21
- 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/package.json +1 -1
- package/src/services/files/LocalFileService.tsx +19 -17
|
@@ -23724,30 +23724,32 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
|
|
|
23724
23724
|
text: Bind.source(file, x => x.source.error)
|
|
23725
23725
|
}))
|
|
23726
23726
|
})));
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
|
|
23731
|
-
|
|
23727
|
+
this.app.runAsync(() => __awaiter(this, void 0, void 0, function* () {
|
|
23728
|
+
try {
|
|
23729
|
+
const ct = new CancelToken();
|
|
23730
|
+
this.registerDisposable({
|
|
23731
|
+
dispose: () => {
|
|
23732
|
+
ct.cancel();
|
|
23733
|
+
}
|
|
23734
|
+
});
|
|
23735
|
+
const tasks = this.files.map(x => x.promise);
|
|
23736
|
+
const files = yield Promise.all(tasks);
|
|
23737
|
+
const extra = this.parameters.extra;
|
|
23738
|
+
this.close({
|
|
23739
|
+
files,
|
|
23740
|
+
extra
|
|
23741
|
+
});
|
|
23742
|
+
} catch (error) {
|
|
23743
|
+
if (CancelToken.isCancelled(error)) {
|
|
23744
|
+
this.cancel(error);
|
|
23745
|
+
return;
|
|
23732
23746
|
}
|
|
23733
|
-
|
|
23734
|
-
|
|
23735
|
-
|
|
23736
|
-
const extra = this.parameters.extra;
|
|
23737
|
-
this.close({
|
|
23738
|
-
files,
|
|
23739
|
-
extra
|
|
23740
|
-
});
|
|
23741
|
-
} catch (error) {
|
|
23742
|
-
if (CancelToken.isCancelled(error)) {
|
|
23747
|
+
yield PopupService.alert({
|
|
23748
|
+
message: error
|
|
23749
|
+
});
|
|
23743
23750
|
this.cancel(error);
|
|
23744
|
-
return;
|
|
23745
23751
|
}
|
|
23746
|
-
|
|
23747
|
-
message: error
|
|
23748
|
-
});
|
|
23749
|
-
this.cancel(error);
|
|
23750
|
-
}
|
|
23752
|
+
}));
|
|
23751
23753
|
});
|
|
23752
23754
|
}
|
|
23753
23755
|
};
|