@social-mail/social-mail-client 1.2.605 → 1.2.607

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.2.605",
3
+ "version": "1.2.607",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,6 +27,7 @@ import WebSiteBlogsPage from "../blogs/WebSiteBlogsPage";
27
27
  import GrapesJSEditor from "../../../controls/html/grapes-js/GrapesJSEditor";
28
28
  import { apiPath } from "../../../apiPath";
29
29
  import FileHistoryPage from "../../files/FileHistoryPage";
30
+ import DownloadZip from "../../../../web/page/files/preview/document/DownloadZip";
30
31
 
31
32
  const css = styled.css `
32
33
  display: grid;
@@ -163,6 +164,12 @@ export default class WebSiteStudioPage extends ContentPage {
163
164
  data-click-event="new-template"
164
165
  text="New Template"/>
165
166
  </div>}
167
+
168
+ <EditIconTextButton
169
+ icon="fad fa-save"
170
+ text="Download Site"
171
+ event-click={() => PageNavigator.pushPage(DownloadZip, this.webSite.folder) }
172
+ />
166
173
  </div>;
167
174
 
168
175
  this.renderer = <div
@@ -19,11 +19,10 @@ import { Sql } from "../../../common/Sql";
19
19
  import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder";
20
20
  import AtomRepeater from "@web-atoms/web-controls/dist/basic/AtomRepeater";
21
21
  import { toKMBString } from "../../../common/NumberFormats";
22
+ import { UMD } from "@web-atoms/core/dist/core/types";
22
23
 
23
24
  let fileInfo: Partial<IAppFile> = (window as any).fileInfo;
24
25
 
25
- declare let JSZip: any;
26
-
27
26
  if (!fileInfo) {
28
27
  fileInfo = (window as any).fileInfo = {};
29
28
  const url = new URL(location.href);
@@ -60,7 +59,7 @@ export default class DownloadZip extends AtomControl {
60
59
  <div>Preparing Zip</div>
61
60
  </div>;
62
61
 
63
- await this.app.installScript("https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js");
62
+ const { JSZip } = await UMD.import("https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js") as any;
64
63
 
65
64
  this.zipFile = new JSZip();
66
65