@pagenflow/email 1.4.4 → 1.4.5
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/components/Button.d.ts +4 -0
- package/dist/components/Column.d.ts +1 -1
- package/dist/components/Container.d.ts +1 -1
- package/dist/components/Image.d.ts +8 -0
- package/dist/components/Row.d.ts +1 -1
- package/dist/components/Section.d.ts +1 -1
- package/dist/components/Text.d.ts +2 -1
- package/dist/index.cjs.js +5 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/IInnerLink.d.ts +17 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1621,7 +1621,9 @@ function Button({ config, devMode }) {
|
|
|
1621
1621
|
let vmlButton = "";
|
|
1622
1622
|
if (!useSimpleOutlookApproach) {
|
|
1623
1623
|
// VML needs fixed pixel height. We estimate it based on padding and potential wrapping.
|
|
1624
|
-
const numericPadding = padding
|
|
1624
|
+
const numericPadding = padding
|
|
1625
|
+
? parseInt(padding.split(" ")[0] || "12", 10)
|
|
1626
|
+
: 12;
|
|
1625
1627
|
const numericFontSize = fontSize ? parseInt(fontSize, 10) : 0;
|
|
1626
1628
|
const numericLineHeight = lineHeight
|
|
1627
1629
|
? lineHeight.includes("px")
|
|
@@ -2862,7 +2864,7 @@ function Spacer({ config, devNode }) {
|
|
|
2862
2864
|
var Spacer_default = memo(Spacer, arePropsEqual);
|
|
2863
2865
|
|
|
2864
2866
|
function Text({ config, devMode, children }) {
|
|
2865
|
-
const { text, padding, color, textAlign, fontFamily, fontSize, fontWeight, fontStyle, lineHeight, letterSpacing, textTransform, textDecoration, direction, verticalAlign, backgroundColor, opacity, whiteSpace, wordBreak = "break-all", maxWidth } = config;
|
|
2867
|
+
const { text, padding, color, textAlign, fontFamily, fontSize, fontWeight, fontStyle, lineHeight, letterSpacing, textTransform, textDecoration, direction, verticalAlign, backgroundColor, opacity, whiteSpace, wordBreak = "break-all", maxWidth, } = config;
|
|
2866
2868
|
// 1. TD Style: Where padding and background are reliably applied.
|
|
2867
2869
|
const tdStyle = {
|
|
2868
2870
|
padding: padding,
|
|
@@ -2889,7 +2891,7 @@ function Text({ config, devMode, children }) {
|
|
|
2889
2891
|
wordBreak: wordBreak,
|
|
2890
2892
|
margin: "0",
|
|
2891
2893
|
padding: "0",
|
|
2892
|
-
maxWidth
|
|
2894
|
+
maxWidth,
|
|
2893
2895
|
};
|
|
2894
2896
|
// Determine content to render
|
|
2895
2897
|
const content = text !== null && text !== void 0 ? text : children;
|