@social-mail/social-mail-client 1.2.227 → 1.2.229

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 (35) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +155 -11
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +57 -4
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/apiPath.d.ts +1 -1
  6. package/dist/common/apiPath.d.ts.map +1 -1
  7. package/dist/common/apiPath.js.map +1 -1
  8. package/dist/common/fileUrl.d.ts +4 -0
  9. package/dist/common/fileUrl.d.ts.map +1 -0
  10. package/dist/common/fileUrl.js +25 -0
  11. package/dist/common/fileUrl.js.map +1 -0
  12. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  13. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  14. package/dist/site-editor/blocks/ImageGrid.d.ts +9 -0
  15. package/dist/site-editor/blocks/ImageGrid.d.ts.map +1 -0
  16. package/dist/site-editor/blocks/ImageGrid.js +87 -0
  17. package/dist/site-editor/blocks/ImageGrid.js.map +1 -0
  18. package/dist/site-editor/editor/HtmlPageEditor.d.ts +6 -2
  19. package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
  20. package/dist/site-editor/editor/HtmlPageEditor.js +24 -5
  21. package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
  22. package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
  23. package/dist/site-editor/editor/WebSitePageEditor.js +12 -5
  24. package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/dist/web/AppIndex.pack.js +155 -11
  27. package/dist/web/AppIndex.pack.js.map +1 -1
  28. package/dist/web/AppIndex.pack.min.js +57 -4
  29. package/dist/web/AppIndex.pack.min.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/common/apiPath.ts +2 -2
  32. package/src/common/fileUrl.ts +16 -0
  33. package/src/site-editor/blocks/ImageGrid.tsx +82 -0
  34. package/src/site-editor/editor/HtmlPageEditor.tsx +14 -2
  35. package/src/site-editor/editor/WebSitePageEditor.tsx +8 -3
@@ -1,3 +1,3 @@
1
- export declare const apiPath: (url: any) => any;
1
+ export declare const apiPath: (url: string) => string;
2
2
  export declare const apiPathRoot: string;
3
3
  //# sourceMappingURL=apiPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"apiPath.d.ts","sourceRoot":"","sources":["../../src/common/apiPath.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,mBAIF,CAAC;AAGnB,eAAO,MAAM,WAAW,QAAO,CAAC"}
1
+ {"version":3,"file":"apiPath.d.ts","sourceRoot":"","sources":["../../src/common/apiPath.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,QACR,MAAM,WAGQ,CAAC;AAG3B,eAAO,MAAM,WAAW,QAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"names":["root","_a","window","socialMail","path","endsWith","substring","length","_export","apiPath","url","apiPathRoot"],"sources":["../../src/common/apiPath.ts"],"sourcesContent":[null],"mappings":";;;;;;;MAAIA,IAAI,GAAI,EAAAC,EAAA,GAACC,MAAc,CAACC,UAAU,cAAAF,EAAA,uBAAAA,EAAA,CAAEG,IAAI,KAAI,GAAG;MACnD,IAAIJ,IAAI,CAACK,QAAQ,CAAC,GAAG,CAAC,EAAE;QACpBL,IAAI,GAAGA,IAAI,CAACM,SAAS,CAAC,CAAC,EAAEN,IAAI,CAACO,MAAM,GAAG,CAAC,CAAC;;MAC5CC,OAAA,YAEYC,OAAO,GAAGT,IAAI,GACpBU,GAAG,IAAI;QACN,OAAOV,IAAI,GAAGU,GAAG;MACrB,CAAC,GACEA,GAAG,IAAKA,GAAG;MAAAF,OAAA,gBAGLG,WAAW,GAAGX,IAAI;IAAA;EAAA;AAAA"}
1
+ {"version":3,"names":["root","_a","window","socialMail","path","endsWith","substring","length","_export","apiPath","url","apiPathRoot"],"sources":["../../src/common/apiPath.ts"],"sourcesContent":[null],"mappings":";;;;;;;MAAIA,IAAI,GAAI,EAAAC,EAAA,GAACC,MAAc,CAACC,UAAU,cAAAF,EAAA,uBAAAA,EAAA,CAAEG,IAAI,KAAI,GAAG;MACnD,IAAIJ,IAAI,CAACK,QAAQ,CAAC,GAAG,CAAC,EAAE;QACpBL,IAAI,GAAGA,IAAI,CAACM,SAAS,CAAC,CAAC,EAAEN,IAAI,CAACO,MAAM,GAAG,CAAC,CAAC;;MAC5CC,OAAA,YAEYC,OAAO,GAAGT,IAAI,GACpBU,GAAW,IAAI;QACd,OAAOV,IAAI,GAAGU,GAAG;MACrB,CAAC,GACEA,GAAW,IAAKA,GAAG;MAAAF,OAAA,gBAGbG,WAAW,GAAGX,IAAI;IAAA;EAAA;AAAA"}
@@ -0,0 +1,4 @@
1
+ import { IAppFile } from "../model/model";
2
+ export declare const imageUrl: (site: IAppFile, file: IAppFile, size?: number) => string;
3
+ export declare const srcSetUrl: (site: IAppFile, file: IAppFile) => string;
4
+ //# sourceMappingURL=fileUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileUrl.d.ts","sourceRoot":"","sources":["../../src/common/fileUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,eAAO,MAAM,QAAQ,SAAU,QAAQ,QAAQ,QAAQ,SAAS,MAAM,WAKrE,CAAC;AAEF,eAAO,MAAM,SAAS,SAAU,QAAQ,QAAQ,QAAQ,WAKvD,CAAC"}
@@ -0,0 +1,25 @@
1
+ System.register(["./apiPath"], function (_export, _context) {
2
+ "use strict";
3
+
4
+ var apiPath, imageUrl, srcSetUrl;
5
+ return {
6
+ setters: [function (_apiPath) {
7
+ apiPath = _apiPath.apiPath;
8
+ }],
9
+ execute: function () {
10
+ _export("imageUrl", imageUrl = (site, file, size) => {
11
+ if (!size) {
12
+ return apiPath(`/api/site/asset/webp/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${file.name}.webp`);
13
+ }
14
+ return apiPath(`/api/site/asset/webp(${size})/${site.appFileID}/${file.appFileID}/${file.fileContentID}/${file.name}.${size}.webp`);
15
+ });
16
+ _export("srcSetUrl", srcSetUrl = (site, file) => {
17
+ const small = imageUrl(site, file, 480) + " 640w";
18
+ const medium = imageUrl(site, file, 720) + " 1024w";
19
+ const large = imageUrl(site, file) + " 1256w";
20
+ return `${small},${medium},${large}`;
21
+ });
22
+ }
23
+ };
24
+ });
25
+ //# sourceMappingURL=fileUrl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["apiPath","_apiPath","execute","_export","imageUrl","site","file","size","appFileID","fileContentID","name","srcSetUrl","small","medium","large"],"sources":["../../src/common/fileUrl.ts"],"sourcesContent":[null],"mappings":";;;;;;MACSA,OAAO,GAAAC,QAAA,CAAPD,OAAO;IAAA;IAAAE,OAAA,WAAAA,CAAA;MAAAC,OAAA,aAEHC,QAAQ,GAAGA,CAACC,IAAc,EAAEC,IAAc,EAAEC,IAAa,KAAI;QACtE,IAAI,CAACA,IAAI,EAAE;UACP,OAAOP,OAAO,CAAC,wBAAwBK,IAAI,CAACG,SAAS,IAAIF,IAAI,CAACE,SAAS,IAAIF,IAAI,CAACG,aAAa,IAAIH,IAAI,CAACI,IAAI,OAAO,CAAC;;QAEtH,OAAQV,OAAO,CAAC,wBAAwBO,IAAI,KAAKF,IAAI,CAACG,SAAS,IAAIF,IAAI,CAACE,SAAS,IAAIF,IAAI,CAACG,aAAa,IAAIH,IAAI,CAACI,IAAI,IAAIH,IAAI,OAAO,CAAC;MACxI,CAAC;MAAAJ,OAAA,cAEYQ,SAAS,GAAGA,CAACN,IAAc,EAAEC,IAAc,KAAI;QACxD,MAAMM,KAAK,GAAGR,QAAQ,CAACC,IAAI,EAAEC,IAAI,EAAE,GAAG,CAAC,GAAG,OAAO;QACjD,MAAMO,MAAM,GAAGT,QAAQ,CAACC,IAAI,EAAEC,IAAI,EAAE,GAAG,CAAC,GAAG,QAAQ;QACnD,MAAMQ,KAAK,GAAGV,QAAQ,CAACC,IAAI,EAAEC,IAAI,CAAC,GAAG,QAAQ;QAC7C,OAAO,GAAGM,KAAK,IAAIC,MAAM,IAAIC,KAAK,EAAE;MACxC,CAAC;IAAA;EAAA;AAAA"}