monto-email-builder 1.1.10 → 1.1.12
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.
|
@@ -806,9 +806,9 @@ function HtmlEditor({
|
|
|
806
806
|
size: "small",
|
|
807
807
|
"aria-label": translate("htmlEditor.mode.split"),
|
|
808
808
|
children: [
|
|
809
|
-
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.splitView"), children: /* @__PURE__ */ jsx(ToggleButton, { value: "split", "aria-label": translate("htmlEditor.mode.split"), children: /* @__PURE__ */ jsx(ViewColumn, { fontSize: "small" }) }) }),
|
|
810
|
-
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.codeOnly"), children: /* @__PURE__ */ jsx(ToggleButton, { value: "code", "aria-label": translate("htmlEditor.mode.code"), children: /* @__PURE__ */ jsx(Code, { fontSize: "small" }) }) }),
|
|
811
|
-
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.previewOnly"), children: /* @__PURE__ */ jsx(ToggleButton, { value: "preview", "aria-label": translate("htmlEditor.mode.preview"), children: /* @__PURE__ */ jsx(Visibility, { fontSize: "small" }) }) })
|
|
809
|
+
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.splitView"), arrow: true, children: /* @__PURE__ */ jsx(ToggleButton, { value: "split", "aria-label": translate("htmlEditor.mode.split"), children: /* @__PURE__ */ jsx(ViewColumn, { fontSize: "small" }) }) }),
|
|
810
|
+
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.codeOnly"), arrow: true, children: /* @__PURE__ */ jsx(ToggleButton, { value: "code", "aria-label": translate("htmlEditor.mode.code"), children: /* @__PURE__ */ jsx(Code, { fontSize: "small" }) }) }),
|
|
811
|
+
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.previewOnly"), arrow: true, children: /* @__PURE__ */ jsx(ToggleButton, { value: "preview", "aria-label": translate("htmlEditor.mode.preview"), children: /* @__PURE__ */ jsx(Visibility, { fontSize: "small" }) }) })
|
|
812
812
|
]
|
|
813
813
|
}
|
|
814
814
|
),
|
|
@@ -852,8 +852,8 @@ function HtmlEditor({
|
|
|
852
852
|
size: "small",
|
|
853
853
|
"aria-label": translate("htmlEditor.device.desktop"),
|
|
854
854
|
children: [
|
|
855
|
-
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.desktopView"), children: /* @__PURE__ */ jsx(ToggleButton, { value: "desktop", "aria-label": translate("htmlEditor.device.desktop"), children: /* @__PURE__ */ jsx(DesktopWindowsOutlined, { fontSize: "small" }) }) }),
|
|
856
|
-
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.mobileView"), children: /* @__PURE__ */ jsx(ToggleButton, { value: "mobile", "aria-label": translate("htmlEditor.device.mobile"), children: /* @__PURE__ */ jsx(PhoneAndroid, { fontSize: "small" }) }) })
|
|
855
|
+
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.desktopView"), arrow: true, children: /* @__PURE__ */ jsx(ToggleButton, { value: "desktop", "aria-label": translate("htmlEditor.device.desktop"), children: /* @__PURE__ */ jsx(DesktopWindowsOutlined, { fontSize: "small" }) }) }),
|
|
856
|
+
/* @__PURE__ */ jsx(Tooltip, { title: translate("htmlEditor.tooltips.mobileView"), arrow: true, children: /* @__PURE__ */ jsx(ToggleButton, { value: "mobile", "aria-label": translate("htmlEditor.device.mobile"), children: /* @__PURE__ */ jsx(PhoneAndroid, { fontSize: "small" }) }) })
|
|
857
857
|
]
|
|
858
858
|
}
|
|
859
859
|
) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialsEditor.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/Socials/SocialsEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,YAAY,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"SocialsEditor.d.ts","sourceRoot":"","sources":["../../../../src/documents/blocks/Socials/SocialsEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIlE,KAAK,kBAAkB,GAAG,YAAY,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CA+B9D"}
|
package/dist/html-editor.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import React, { createContext, useContext, useState, useEffect, useRef, Fragment
|
|
|
6
6
|
import { Box, Typography, Stack, Button, InputLabel, Menu, ButtonBase, ToggleButtonGroup, TextField, MenuItem, Slider, ToggleButton, Dialog, DialogTitle, DialogContent, DialogActions, CircularProgress, FormControlLabel, Switch, Paper, IconButton, Select, Divider, Drawer, Tabs, Tab, Fade, Tooltip, Alert, useTheme, ThemeProvider, CssBaseline } from "@mui/material";
|
|
7
7
|
import { renderToStaticMarkup, Reader } from "monto-email-core";
|
|
8
8
|
import { create } from "zustand";
|
|
9
|
-
import { g as getLanguage, s as setLanguage$1, t } from "./chunks/chunk-
|
|
10
|
-
import { H } from "./chunks/chunk-
|
|
9
|
+
import { g as getLanguage, s as setLanguage$1, t } from "./chunks/chunk-MBtaCJUV.js";
|
|
10
|
+
import { H } from "./chunks/chunk-MBtaCJUV.js";
|
|
11
11
|
import { E as EMPTY_EMAIL_MESSAGE } from "./chunks/chunk-TAYi09Lv.js";
|
|
12
12
|
import { createTheme, alpha, lighten, darken } from "@mui/material/styles";
|
|
13
13
|
import { ButtonPropsDefaults, ButtonPropsSchema, Button as Button$1 } from "@usewaypoint/block-button";
|
|
@@ -600,6 +600,9 @@ const THEME = createTheme(BASE_THEME, {
|
|
|
600
600
|
tooltip: {
|
|
601
601
|
fontSize: BASE_THEME.typography.pxToRem(12),
|
|
602
602
|
backgroundColor: alpha(BASE_THEME.palette.text.primary, 0.9)
|
|
603
|
+
},
|
|
604
|
+
arrow: {
|
|
605
|
+
color: alpha(BASE_THEME.palette.text.primary, 0.9)
|
|
603
606
|
}
|
|
604
607
|
}
|
|
605
608
|
},
|
|
@@ -6768,9 +6771,9 @@ function TuneMenu({ blockId }) {
|
|
|
6768
6771
|
setSelectedBlockId(blockId);
|
|
6769
6772
|
};
|
|
6770
6773
|
return /* @__PURE__ */ jsx(Paper, { sx, onClick: (ev) => ev.stopPropagation(), children: /* @__PURE__ */ jsxs(Stack, { children: [
|
|
6771
|
-
canMove.canMoveUp && /* @__PURE__ */ jsx(Tooltip, { title: "Move up", placement: "left
|
|
6772
|
-
canMove.canMoveDown && /* @__PURE__ */ jsx(Tooltip, { title: "Move down", placement: "left
|
|
6773
|
-
/* @__PURE__ */ jsx(Tooltip, { title: "Delete", placement: "left
|
|
6774
|
+
canMove.canMoveUp && /* @__PURE__ */ jsx(Tooltip, { title: "Move up", placement: "left", arrow: true, children: /* @__PURE__ */ jsx(IconButton, { onClick: () => handleMoveClick("up"), sx: { color: "text.primary" }, children: /* @__PURE__ */ jsx(ArrowUpwardOutlined, { fontSize: "small" }) }) }),
|
|
6775
|
+
canMove.canMoveDown && /* @__PURE__ */ jsx(Tooltip, { title: "Move down", placement: "left", arrow: true, children: /* @__PURE__ */ jsx(IconButton, { onClick: () => handleMoveClick("down"), sx: { color: "text.primary" }, children: /* @__PURE__ */ jsx(ArrowDownwardOutlined, { fontSize: "small" }) }) }),
|
|
6776
|
+
/* @__PURE__ */ jsx(Tooltip, { title: "Delete", placement: "left", arrow: true, children: /* @__PURE__ */ jsx(IconButton, { onClick: handleDeleteClick, sx: { color: "text.primary" }, children: /* @__PURE__ */ jsx(DeleteOutlined, { color: "error", fontSize: "small" }) }) })
|
|
6774
6777
|
] }) });
|
|
6775
6778
|
}
|
|
6776
6779
|
function EditorBlockWrapper({ children }) {
|
|
@@ -7022,7 +7025,7 @@ function DownloadJson() {
|
|
|
7022
7025
|
const href = useMemo(() => {
|
|
7023
7026
|
return `data:text/plain,${encodeURIComponent(JSON.stringify(doc, null, " "))}`;
|
|
7024
7027
|
}, [doc]);
|
|
7025
|
-
return /* @__PURE__ */ jsx(Tooltip, { title: t2("common.downloadJson"), children: /* @__PURE__ */ jsx(IconButton, { href, download: "emailTemplate.json", children: /* @__PURE__ */ jsx(FileDownloadOutlined, { fontSize: "small" }) }) });
|
|
7028
|
+
return /* @__PURE__ */ jsx(Tooltip, { title: t2("common.downloadJson"), arrow: true, children: /* @__PURE__ */ jsx(IconButton, { href, download: "emailTemplate.json", children: /* @__PURE__ */ jsx(FileDownloadOutlined, { fontSize: "small" }) }) });
|
|
7026
7029
|
}
|
|
7027
7030
|
let SyntaxHighlighter = null;
|
|
7028
7031
|
let jsonLang = null;
|
|
@@ -7333,7 +7336,7 @@ function ImportJson() {
|
|
|
7333
7336
|
dialog = /* @__PURE__ */ jsx(ImportJsonDialog, { onClose: () => setOpen(false) });
|
|
7334
7337
|
}
|
|
7335
7338
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7336
|
-
/* @__PURE__ */ jsx(Tooltip, { title: t2("common.importJson"), children: /* @__PURE__ */ jsx(IconButton, { onClick: () => setOpen(true), children: /* @__PURE__ */ jsx(FileUploadOutlined, { fontSize: "small" }) }) }),
|
|
7339
|
+
/* @__PURE__ */ jsx(Tooltip, { title: t2("common.importJson"), arrow: true, children: /* @__PURE__ */ jsx(IconButton, { onClick: () => setOpen(true), children: /* @__PURE__ */ jsx(FileUploadOutlined, { fontSize: "small" }) }) }),
|
|
7337
7340
|
dialog
|
|
7338
7341
|
] });
|
|
7339
7342
|
}
|
|
@@ -7363,28 +7366,28 @@ function MainTabsGroup() {
|
|
|
7363
7366
|
Tab,
|
|
7364
7367
|
{
|
|
7365
7368
|
value: "editor",
|
|
7366
|
-
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.edit"), children: /* @__PURE__ */ jsx(EditOutlined, { fontSize: "small" }) })
|
|
7369
|
+
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.edit"), arrow: true, children: /* @__PURE__ */ jsx(EditOutlined, { fontSize: "small" }) })
|
|
7367
7370
|
}
|
|
7368
7371
|
),
|
|
7369
7372
|
/* @__PURE__ */ jsx(
|
|
7370
7373
|
Tab,
|
|
7371
7374
|
{
|
|
7372
7375
|
value: "preview",
|
|
7373
|
-
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.preview"), children: /* @__PURE__ */ jsx(PreviewOutlined, { fontSize: "small" }) })
|
|
7376
|
+
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.preview"), arrow: true, children: /* @__PURE__ */ jsx(PreviewOutlined, { fontSize: "small" }) })
|
|
7374
7377
|
}
|
|
7375
7378
|
),
|
|
7376
7379
|
/* @__PURE__ */ jsx(
|
|
7377
7380
|
Tab,
|
|
7378
7381
|
{
|
|
7379
7382
|
value: "html",
|
|
7380
|
-
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.htmlOutput"), children: /* @__PURE__ */ jsx(CodeOutlined, { fontSize: "small" }) })
|
|
7383
|
+
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.htmlOutput"), arrow: true, children: /* @__PURE__ */ jsx(CodeOutlined, { fontSize: "small" }) })
|
|
7381
7384
|
}
|
|
7382
7385
|
),
|
|
7383
7386
|
showJsonFeatures && /* @__PURE__ */ jsx(
|
|
7384
7387
|
Tab,
|
|
7385
7388
|
{
|
|
7386
7389
|
value: "json",
|
|
7387
|
-
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.jsonOutput"), children: /* @__PURE__ */ jsx(DataObjectOutlined, { fontSize: "small" }) })
|
|
7390
|
+
label: /* @__PURE__ */ jsx(Tooltip, { title: t2("tabs.jsonOutput"), arrow: true, children: /* @__PURE__ */ jsx(DataObjectOutlined, { fontSize: "small" }) })
|
|
7388
7391
|
}
|
|
7389
7392
|
)
|
|
7390
7393
|
] });
|
|
@@ -7415,12 +7418,12 @@ function NameInput() {
|
|
|
7415
7418
|
function RedoButton() {
|
|
7416
7419
|
const { t: t2 } = useTranslation();
|
|
7417
7420
|
const canRedo2 = useCanRedo();
|
|
7418
|
-
return /* @__PURE__ */ jsx(Tooltip, { title: t2("common.redoTooltip"), children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { onClick: redo, disabled: !canRedo2, size: "small", children: /* @__PURE__ */ jsx(RedoOutlined, { fontSize: "small" }) }) }) });
|
|
7421
|
+
return /* @__PURE__ */ jsx(Tooltip, { title: t2("common.redoTooltip"), arrow: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { onClick: redo, disabled: !canRedo2, size: "small", children: /* @__PURE__ */ jsx(RedoOutlined, { fontSize: "small" }) }) }) });
|
|
7419
7422
|
}
|
|
7420
7423
|
function UndoButton() {
|
|
7421
7424
|
const { t: t2 } = useTranslation();
|
|
7422
7425
|
const canUndo2 = useCanUndo();
|
|
7423
|
-
return /* @__PURE__ */ jsx(Tooltip, { title: t2("common.undoTooltip"), children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { onClick: undo, disabled: !canUndo2, size: "small", children: /* @__PURE__ */ jsx(UndoOutlined, { fontSize: "small" }) }) }) });
|
|
7426
|
+
return /* @__PURE__ */ jsx(Tooltip, { title: t2("common.undoTooltip"), arrow: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { onClick: undo, disabled: !canUndo2, size: "small", children: /* @__PURE__ */ jsx(UndoOutlined, { fontSize: "small" }) }) }) });
|
|
7424
7427
|
}
|
|
7425
7428
|
function TemplatePanel() {
|
|
7426
7429
|
const { t: t2 } = useTranslation();
|
|
@@ -7496,8 +7499,8 @@ function TemplatePanel() {
|
|
|
7496
7499
|
showJsonFeatures && /* @__PURE__ */ jsx(DownloadJson, {}),
|
|
7497
7500
|
showJsonFeatures && /* @__PURE__ */ jsx(ImportJson, {}),
|
|
7498
7501
|
/* @__PURE__ */ jsxs(ToggleButtonGroup, { size: "small", value: selectedScreenSize, exclusive: true, onChange: handleScreenSizeChange, children: [
|
|
7499
|
-
/* @__PURE__ */ jsx(ToggleButton, { value: "desktop", children: /* @__PURE__ */ jsx(Tooltip, { title: t2("common.desktopView"), children: /* @__PURE__ */ jsx(MonitorOutlined, { fontSize: "small" }) }) }),
|
|
7500
|
-
/* @__PURE__ */ jsx(ToggleButton, { value: "mobile", children: /* @__PURE__ */ jsx(Tooltip, { title: t2("common.mobileView"), children: /* @__PURE__ */ jsx(PhoneIphoneOutlined, { fontSize: "small" }) }) })
|
|
7502
|
+
/* @__PURE__ */ jsx(ToggleButton, { value: "desktop", children: /* @__PURE__ */ jsx(Tooltip, { title: t2("common.desktopView"), arrow: true, children: /* @__PURE__ */ jsx(MonitorOutlined, { fontSize: "small" }) }) }),
|
|
7503
|
+
/* @__PURE__ */ jsx(ToggleButton, { value: "mobile", children: /* @__PURE__ */ jsx(Tooltip, { title: t2("common.mobileView"), arrow: true, children: /* @__PURE__ */ jsx(PhoneIphoneOutlined, { fontSize: "small" }) }) })
|
|
7501
7504
|
] })
|
|
7502
7505
|
] })
|
|
7503
7506
|
] }),
|
package/dist/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AA6BA,QAAA,MAAM,KAAK,+
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AA6BA,QAAA,MAAM,KAAK,+BAmfT,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monto-email-builder",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "A powerful and customizable email template builder React component library with visual editing, internationalization, and image upload support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"email",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"@usewaypoint/block-text": "0.0.6",
|
|
70
70
|
"@usewaypoint/document-core": "0.0.6",
|
|
71
71
|
"monto-email-block-html": "0.0.1",
|
|
72
|
-
"monto-email-block-socials": "0.0.
|
|
72
|
+
"monto-email-block-socials": "0.0.8",
|
|
73
73
|
"monto-email-block-video": "0.0.1",
|
|
74
|
-
"monto-email-block-columns-container": "0.0.
|
|
75
|
-
"monto-email-core": "0.0.
|
|
74
|
+
"monto-email-block-columns-container": "0.0.2",
|
|
75
|
+
"monto-email-core": "0.0.17",
|
|
76
76
|
"react-colorful": "^5.6.1",
|
|
77
77
|
"zod": "^3.22.4",
|
|
78
78
|
"zustand": "^4.5.1"
|