@emailens/cli 0.13.14 → 0.13.16
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/{chunk-MVU52ONA.js → chunk-FFVMVESX.js} +17 -7
- package/dist/index.js +20 -10
- package/dist/test.js +1 -1
- package/package.json +2 -2
|
@@ -62815,8 +62815,12 @@ function backgroundShorthandColor(value) {
|
|
|
62815
62815
|
if (!value) return null;
|
|
62816
62816
|
const trimmed = value.trim();
|
|
62817
62817
|
if (parseColor(trimmed)) return trimmed;
|
|
62818
|
-
|
|
62819
|
-
|
|
62818
|
+
let outer = trimmed;
|
|
62819
|
+
for (let prev2 = ""; prev2 !== outer; ) {
|
|
62820
|
+
prev2 = outer;
|
|
62821
|
+
outer = outer.replace(/[\w-]*\([^()]*\)/g, " ");
|
|
62822
|
+
}
|
|
62823
|
+
for (const token of outer.split(/\s+/)) {
|
|
62820
62824
|
if (parseColor(token)) return token;
|
|
62821
62825
|
}
|
|
62822
62826
|
return null;
|
|
@@ -65794,7 +65798,10 @@ var YAHOO_STRIPPED = /* @__PURE__ */ new Set(["position", "box-shadow", "transfo
|
|
|
65794
65798
|
var YAHOO_WEB_STRIPPED = /* @__PURE__ */ new Set([
|
|
65795
65799
|
...[...YAHOO_STRIPPED].filter((p) => p !== "box-shadow"),
|
|
65796
65800
|
"flex",
|
|
65797
|
-
"flex-basis"
|
|
65801
|
+
"flex-basis",
|
|
65802
|
+
// A width:100% + padding + border-box CTA came out 566px in a 534px column
|
|
65803
|
+
// (J9vFS4nm_LGl, 2026-10-30): box-sizing is ignored, as caniemail lists.
|
|
65804
|
+
"box-sizing"
|
|
65798
65805
|
]);
|
|
65799
65806
|
var GMAIL_WEB_STRIPPED = /* @__PURE__ */ new Set([...GMAIL_STRIPPED_PROPERTIES, "flex", "flex-basis"]);
|
|
65800
65807
|
var CLIENT_CONFIGS = {
|
|
@@ -72275,7 +72282,7 @@ function checkOverflowFromDom($3, source) {
|
|
|
72275
72282
|
const $parent = $img.closest("td, th, div");
|
|
72276
72283
|
if (!$parent.length) return;
|
|
72277
72284
|
const parentWidth = fixedPxWidth($parent);
|
|
72278
|
-
if (parentWidth !== null && imgWidth > parentWidth) {
|
|
72285
|
+
if (parentWidth !== null && parentWidth > 0 && imgWidth > parentWidth) {
|
|
72279
72286
|
const key = `img-overflow:${imgWidth}:${parentWidth}`;
|
|
72280
72287
|
if (!seen.has(key)) {
|
|
72281
72288
|
const loc = locOfAttr(imgEl, "width") || locOfElement(imgEl);
|
|
@@ -72310,8 +72317,11 @@ function checkOverflowFromDom($3, source) {
|
|
|
72310
72317
|
const loc = locateInNodes(nodes, starts, start, token.length, source);
|
|
72311
72318
|
issues.push(__spreadValues({
|
|
72312
72319
|
rule: "unbreakable-string",
|
|
72313
|
-
|
|
72314
|
-
|
|
72320
|
+
// ponytail: a note. Measured on users' emails (2026-11-06) it was
|
|
72321
|
+
// right on 2 of 15: phones overflow when side-by-side cells cannot
|
|
72322
|
+
// shrink past their words, which only a real layout shows.
|
|
72323
|
+
severity: "info",
|
|
72324
|
+
message: `A ${token.length}-character unbroken string ("${preview}") can't wrap; in a narrow column it can widen the layout.`,
|
|
72315
72325
|
detail: `Add overflow-wrap: anywhere (or word-break: break-word) to its container.`
|
|
72316
72326
|
}, loc ? { loc, locs: [loc] } : {}));
|
|
72317
72327
|
}
|
|
@@ -72340,7 +72350,7 @@ function checkOverflowFromDom($3, source) {
|
|
|
72340
72350
|
}, widestLoc ? { loc: widestLoc, locs: [widestLoc] } : {}));
|
|
72341
72351
|
}
|
|
72342
72352
|
}
|
|
72343
|
-
return { hasOverflow: issues.
|
|
72353
|
+
return { hasOverflow: issues.some((i2) => i2.severity !== "info"), issues };
|
|
72344
72354
|
}
|
|
72345
72355
|
var CSS_WIDE_KEYWORDS = /* @__PURE__ */ new Set(["inherit", "initial", "unset", "revert", "revert-layer"]);
|
|
72346
72356
|
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-FFVMVESX.js";
|
|
36
36
|
import "./chunk-ABDTBRVK.js";
|
|
37
37
|
import "./chunk-2AP7CT6R.js";
|
|
38
38
|
import "./chunk-NXBRJX3V.js";
|
|
@@ -32846,8 +32846,12 @@ h1 {
|
|
|
32846
32846
|
if (!value) return null;
|
|
32847
32847
|
const trimmed = value.trim();
|
|
32848
32848
|
if (parseColor(trimmed)) return trimmed;
|
|
32849
|
-
|
|
32850
|
-
|
|
32849
|
+
let outer = trimmed;
|
|
32850
|
+
for (let prev = ""; prev !== outer; ) {
|
|
32851
|
+
prev = outer;
|
|
32852
|
+
outer = outer.replace(/[\w-]*\([^()]*\)/g, " ");
|
|
32853
|
+
}
|
|
32854
|
+
for (const token of outer.split(/\s+/)) {
|
|
32851
32855
|
if (parseColor(token)) return token;
|
|
32852
32856
|
}
|
|
32853
32857
|
return null;
|
|
@@ -35842,7 +35846,10 @@ h1 {
|
|
|
35842
35846
|
var YAHOO_WEB_STRIPPED = /* @__PURE__ */ new Set([
|
|
35843
35847
|
...[...YAHOO_STRIPPED].filter((p) => p !== "box-shadow"),
|
|
35844
35848
|
"flex",
|
|
35845
|
-
"flex-basis"
|
|
35849
|
+
"flex-basis",
|
|
35850
|
+
// A width:100% + padding + border-box CTA came out 566px in a 534px column
|
|
35851
|
+
// (J9vFS4nm_LGl, 2026-10-30): box-sizing is ignored, as caniemail lists.
|
|
35852
|
+
"box-sizing"
|
|
35846
35853
|
]);
|
|
35847
35854
|
var GMAIL_WEB_STRIPPED = /* @__PURE__ */ new Set([...GMAIL_STRIPPED_PROPERTIES, "flex", "flex-basis"]);
|
|
35848
35855
|
var CLIENT_CONFIGS = {
|
|
@@ -42726,7 +42733,7 @@ Href: ${href}`
|
|
|
42726
42733
|
const $parent = $img.closest("td, th, div");
|
|
42727
42734
|
if (!$parent.length) return;
|
|
42728
42735
|
const parentWidth = fixedPxWidth($parent);
|
|
42729
|
-
if (parentWidth !== null && imgWidth > parentWidth) {
|
|
42736
|
+
if (parentWidth !== null && parentWidth > 0 && imgWidth > parentWidth) {
|
|
42730
42737
|
const key = `img-overflow:${imgWidth}:${parentWidth}`;
|
|
42731
42738
|
if (!seen.has(key)) {
|
|
42732
42739
|
const loc = locOfAttr(imgEl, "width") || locOfElement(imgEl);
|
|
@@ -42761,8 +42768,11 @@ Href: ${href}`
|
|
|
42761
42768
|
const loc = locateInNodes(nodes, starts, start, token.length, source);
|
|
42762
42769
|
issues.push(__spreadValues({
|
|
42763
42770
|
rule: "unbreakable-string",
|
|
42764
|
-
|
|
42765
|
-
|
|
42771
|
+
// ponytail: a note. Measured on users' emails (2026-11-06) it was
|
|
42772
|
+
// right on 2 of 15: phones overflow when side-by-side cells cannot
|
|
42773
|
+
// shrink past their words, which only a real layout shows.
|
|
42774
|
+
severity: "info",
|
|
42775
|
+
message: `A ${token.length}-character unbroken string ("${preview}") can't wrap; in a narrow column it can widen the layout.`,
|
|
42766
42776
|
detail: `Add overflow-wrap: anywhere (or word-break: break-word) to its container.`
|
|
42767
42777
|
}, loc ? { loc, locs: [loc] } : {}));
|
|
42768
42778
|
}
|
|
@@ -42791,7 +42801,7 @@ Href: ${href}`
|
|
|
42791
42801
|
}, widestLoc ? { loc: widestLoc, locs: [widestLoc] } : {}));
|
|
42792
42802
|
}
|
|
42793
42803
|
}
|
|
42794
|
-
return { hasOverflow: issues.
|
|
42804
|
+
return { hasOverflow: issues.some((i) => i.severity !== "info"), issues };
|
|
42795
42805
|
}
|
|
42796
42806
|
function checkOverflow(html, options) {
|
|
42797
42807
|
return fromHtml(
|
|
@@ -43422,7 +43432,7 @@ Href: ${href}`
|
|
|
43422
43432
|
// package.json
|
|
43423
43433
|
var package_default = {
|
|
43424
43434
|
name: "@emailens/cli",
|
|
43425
|
-
version: "0.13.
|
|
43435
|
+
version: "0.13.16",
|
|
43426
43436
|
description: "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
43427
43437
|
type: "module",
|
|
43428
43438
|
bin: {
|
|
@@ -43463,7 +43473,7 @@ var package_default = {
|
|
|
43463
43473
|
},
|
|
43464
43474
|
devDependencies: {
|
|
43465
43475
|
"@anthropic-ai/sdk": "^0.52.0",
|
|
43466
|
-
"@emailens/engine": "^0.18.
|
|
43476
|
+
"@emailens/engine": "^0.18.18",
|
|
43467
43477
|
"@types/bun": "^1.4.0",
|
|
43468
43478
|
"@types/mjml": "^4.7.4",
|
|
43469
43479
|
"@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.16",
|
|
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.18",
|
|
45
45
|
"@types/bun": "^1.4.0",
|
|
46
46
|
"@types/mjml": "^4.7.4",
|
|
47
47
|
"@types/node": "^25.9.5",
|