@social-mail/social-mail-client 1.9.2 → 1.9.4

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 (31) hide show
  1. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  2. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  3. package/dist/common/controls/drag-drop/FilesDragDrop.d.ts.map +1 -1
  4. package/dist/common/controls/drag-drop/FilesDragDrop.js.map +1 -1
  5. package/dist/common/currency.d.ts.map +1 -1
  6. package/dist/common/currency.js.map +1 -1
  7. package/dist/public/preview/pdf/PreviewPDF.d.ts.map +1 -1
  8. package/dist/public/preview/pdf/PreviewPDF.js.map +1 -1
  9. package/dist/public/preview/pdf/PreviewPDF.pack.js.map +1 -1
  10. package/dist/public/preview/pdf/PreviewPDF.pack.min.js.map +1 -1
  11. package/dist/public/store/StoreApp.pack.js.map +1 -1
  12. package/dist/public/store/StoreApp.pack.min.js.map +1 -1
  13. package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
  14. package/dist/site-editor/editor/HtmlPageEditor.js +6 -0
  15. package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
  16. package/dist/site-editor/editor/ui/SnapGuides.d.ts.map +1 -1
  17. package/dist/site-editor/editor/ui/SnapGuides.js +0 -1
  18. package/dist/site-editor/editor/ui/SnapGuides.js.map +1 -1
  19. package/dist/site-editor-app/SiteEditorApp.pack.js +6 -1
  20. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  21. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  22. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/dist/web/AppIndex.pack.js.map +1 -1
  25. package/dist/web/AppIndex.pack.min.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/common/controls/drag-drop/FilesDragDrop.ts +0 -2
  28. package/src/common/currency.ts +0 -3
  29. package/src/public/preview/pdf/PreviewPDF.tsx +0 -1
  30. package/src/site-editor/editor/HtmlPageEditor.tsx +8 -0
  31. package/src/site-editor/editor/ui/SnapGuides.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -96,9 +96,7 @@ const eventDrop = (e: DragEvent) => {
96
96
  extra,
97
97
  uploadEvent
98
98
  };
99
- // console.log(detail);
100
99
  currentTarget.dispatchEvent(new CustomEvent(uploadRequested, { detail, bubbles: true, cancelable: true}));
101
- // console.log(files);
102
100
  });
103
101
 
104
102
  };
@@ -23,10 +23,7 @@ export function formatCurrency(n, currency: string) {
23
23
  if (n === void 0 || n === null) {
24
24
  return "";
25
25
  }
26
- // console.log("before n", n);
27
26
  n = Number(n);
28
- // console.log("n", n);
29
- // console.log("formatted", n.toLocaleString(void 0, {minimumFractionDigits: 0, maximumFractionDigits: 0, style: "currency", currency}));
30
27
  return n.toLocaleString(void 0, {minimumFractionDigits: 0, maximumFractionDigits: 0, style: "currency", currency});
31
28
  }
32
29
 
@@ -116,7 +116,6 @@ export default class PreviewDocument extends AtomControl {
116
116
  let tries = 0;
117
117
 
118
118
  loaderTask.onPassword = (callback, reason) => {
119
- // console.log(reason);
120
119
  tries++;
121
120
  if (tries > 3) {
122
121
  this.renderer = <div>
@@ -876,6 +876,14 @@ export default class HtmlPageEditor extends AtomControl {
876
876
  node.removeAttribute(attributeName);
877
877
  continue;
878
878
  }
879
+
880
+ if (attributeName.includes("-desktop-")) {
881
+ const a = attributeName.replace("-desktop-", "-");
882
+ node.removeAttribute(attributeName);
883
+ node.setAttribute(a, av);
884
+ continue;
885
+ }
886
+
879
887
  const s = editorSuggestions[attributeName] as { label: string, value: string }[];
880
888
  if (s) {
881
889
  const cv = s.find((x) => x.label === av);
@@ -85,7 +85,6 @@ export default class SnapGuides {
85
85
  start = start.nextElementSibling as HTMLElement;
86
86
  } while(start);
87
87
  }
88
- console.log(all);
89
88
  }
90
89
 
91
90
  snap(rect: IRect) {