@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.
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/controls/drag-drop/FilesDragDrop.d.ts.map +1 -1
- package/dist/common/controls/drag-drop/FilesDragDrop.js.map +1 -1
- package/dist/common/currency.d.ts.map +1 -1
- package/dist/common/currency.js.map +1 -1
- package/dist/public/preview/pdf/PreviewPDF.d.ts.map +1 -1
- package/dist/public/preview/pdf/PreviewPDF.js.map +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.js.map +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.min.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +6 -0
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/site-editor/editor/ui/SnapGuides.d.ts.map +1 -1
- package/dist/site-editor/editor/ui/SnapGuides.js +0 -1
- package/dist/site-editor/editor/ui/SnapGuides.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +6 -1
- 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.map +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/controls/drag-drop/FilesDragDrop.ts +0 -2
- package/src/common/currency.ts +0 -3
- package/src/public/preview/pdf/PreviewPDF.tsx +0 -1
- package/src/site-editor/editor/HtmlPageEditor.tsx +8 -0
- package/src/site-editor/editor/ui/SnapGuides.ts +0 -1
package/package.json
CHANGED
package/src/common/currency.ts
CHANGED
|
@@ -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
|
|
|
@@ -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);
|