@emailens/cli 0.13.14 → 0.13.15
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.
|
@@ -72275,7 +72275,7 @@ function checkOverflowFromDom($3, source) {
|
|
|
72275
72275
|
const $parent = $img.closest("td, th, div");
|
|
72276
72276
|
if (!$parent.length) return;
|
|
72277
72277
|
const parentWidth = fixedPxWidth($parent);
|
|
72278
|
-
if (parentWidth !== null && imgWidth > parentWidth) {
|
|
72278
|
+
if (parentWidth !== null && parentWidth > 0 && imgWidth > parentWidth) {
|
|
72279
72279
|
const key = `img-overflow:${imgWidth}:${parentWidth}`;
|
|
72280
72280
|
if (!seen.has(key)) {
|
|
72281
72281
|
const loc = locOfAttr(imgEl, "width") || locOfElement(imgEl);
|
|
@@ -72310,8 +72310,11 @@ function checkOverflowFromDom($3, source) {
|
|
|
72310
72310
|
const loc = locateInNodes(nodes, starts, start, token.length, source);
|
|
72311
72311
|
issues.push(__spreadValues({
|
|
72312
72312
|
rule: "unbreakable-string",
|
|
72313
|
-
|
|
72314
|
-
|
|
72313
|
+
// ponytail: a note. Measured on users' emails (2026-11-06) it was
|
|
72314
|
+
// right on 2 of 15: phones overflow when side-by-side cells cannot
|
|
72315
|
+
// shrink past their words, which only a real layout shows.
|
|
72316
|
+
severity: "info",
|
|
72317
|
+
message: `A ${token.length}-character unbroken string ("${preview}") can't wrap; in a narrow column it can widen the layout.`,
|
|
72315
72318
|
detail: `Add overflow-wrap: anywhere (or word-break: break-word) to its container.`
|
|
72316
72319
|
}, loc ? { loc, locs: [loc] } : {}));
|
|
72317
72320
|
}
|
|
@@ -72340,7 +72343,7 @@ function checkOverflowFromDom($3, source) {
|
|
|
72340
72343
|
}, widestLoc ? { loc: widestLoc, locs: [widestLoc] } : {}));
|
|
72341
72344
|
}
|
|
72342
72345
|
}
|
|
72343
|
-
return { hasOverflow: issues.
|
|
72346
|
+
return { hasOverflow: issues.some((i2) => i2.severity !== "info"), issues };
|
|
72344
72347
|
}
|
|
72345
72348
|
var CSS_WIDE_KEYWORDS = /* @__PURE__ */ new Set(["inherit", "initial", "unset", "revert", "revert-layer"]);
|
|
72346
72349
|
var GRADIENT_RE = /(?:linear|radial|conic)-gradient\(/i;
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
simulateDarkMode,
|
|
33
33
|
toFramework,
|
|
34
34
|
transformForAllClients
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-W77SJYOR.js";
|
|
36
36
|
import "./chunk-ABDTBRVK.js";
|
|
37
37
|
import "./chunk-2AP7CT6R.js";
|
|
38
38
|
import "./chunk-NXBRJX3V.js";
|
|
@@ -42726,7 +42726,7 @@ Href: ${href}`
|
|
|
42726
42726
|
const $parent = $img.closest("td, th, div");
|
|
42727
42727
|
if (!$parent.length) return;
|
|
42728
42728
|
const parentWidth = fixedPxWidth($parent);
|
|
42729
|
-
if (parentWidth !== null && imgWidth > parentWidth) {
|
|
42729
|
+
if (parentWidth !== null && parentWidth > 0 && imgWidth > parentWidth) {
|
|
42730
42730
|
const key = `img-overflow:${imgWidth}:${parentWidth}`;
|
|
42731
42731
|
if (!seen.has(key)) {
|
|
42732
42732
|
const loc = locOfAttr(imgEl, "width") || locOfElement(imgEl);
|
|
@@ -42761,8 +42761,11 @@ Href: ${href}`
|
|
|
42761
42761
|
const loc = locateInNodes(nodes, starts, start, token.length, source);
|
|
42762
42762
|
issues.push(__spreadValues({
|
|
42763
42763
|
rule: "unbreakable-string",
|
|
42764
|
-
|
|
42765
|
-
|
|
42764
|
+
// ponytail: a note. Measured on users' emails (2026-11-06) it was
|
|
42765
|
+
// right on 2 of 15: phones overflow when side-by-side cells cannot
|
|
42766
|
+
// shrink past their words, which only a real layout shows.
|
|
42767
|
+
severity: "info",
|
|
42768
|
+
message: `A ${token.length}-character unbroken string ("${preview}") can't wrap; in a narrow column it can widen the layout.`,
|
|
42766
42769
|
detail: `Add overflow-wrap: anywhere (or word-break: break-word) to its container.`
|
|
42767
42770
|
}, loc ? { loc, locs: [loc] } : {}));
|
|
42768
42771
|
}
|
|
@@ -42791,7 +42794,7 @@ Href: ${href}`
|
|
|
42791
42794
|
}, widestLoc ? { loc: widestLoc, locs: [widestLoc] } : {}));
|
|
42792
42795
|
}
|
|
42793
42796
|
}
|
|
42794
|
-
return { hasOverflow: issues.
|
|
42797
|
+
return { hasOverflow: issues.some((i) => i.severity !== "info"), issues };
|
|
42795
42798
|
}
|
|
42796
42799
|
function checkOverflow(html, options) {
|
|
42797
42800
|
return fromHtml(
|
|
@@ -43422,7 +43425,7 @@ Href: ${href}`
|
|
|
43422
43425
|
// package.json
|
|
43423
43426
|
var package_default = {
|
|
43424
43427
|
name: "@emailens/cli",
|
|
43425
|
-
version: "0.13.
|
|
43428
|
+
version: "0.13.15",
|
|
43426
43429
|
description: "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
43427
43430
|
type: "module",
|
|
43428
43431
|
bin: {
|
|
@@ -43463,7 +43466,7 @@ var package_default = {
|
|
|
43463
43466
|
},
|
|
43464
43467
|
devDependencies: {
|
|
43465
43468
|
"@anthropic-ai/sdk": "^0.52.0",
|
|
43466
|
-
"@emailens/engine": "^0.18.
|
|
43469
|
+
"@emailens/engine": "^0.18.17",
|
|
43467
43470
|
"@types/bun": "^1.4.0",
|
|
43468
43471
|
"@types/mjml": "^4.7.4",
|
|
43469
43472
|
"@types/node": "^25.9.5",
|
package/dist/test.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emailens/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.15",
|
|
4
4
|
"description": "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@anthropic-ai/sdk": "^0.52.0",
|
|
44
|
-
"@emailens/engine": "^0.18.
|
|
44
|
+
"@emailens/engine": "^0.18.17",
|
|
45
45
|
"@types/bun": "^1.4.0",
|
|
46
46
|
"@types/mjml": "^4.7.4",
|
|
47
47
|
"@types/node": "^25.9.5",
|