@emailens/cli 0.13.9 → 0.13.10
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-VC36VNI3.js → chunk-56SQXQSC.js} +24 -6
- package/dist/index.js +27 -9
- package/dist/test.js +1 -1
- package/package.json +2 -2
|
@@ -65701,6 +65701,12 @@ var CLIENT_CONFIGS = {
|
|
|
65701
65701
|
// An inline font-family naming a quoted font is dropped whole; <style>
|
|
65702
65702
|
// keeps it (2026-10-28, analyze.ts step 7).
|
|
65703
65703
|
valueStrips: [{ prop: "font-family", pattern: /['"]/ }],
|
|
65704
|
+
// A radial-gradient button drew as its flat background-color, inline and
|
|
65705
|
+
// from <style> alike (real-device capture of preview J9vFS4nm_LGl,
|
|
65706
|
+
// 2026-10-30; caniemail agrees). ponytail: radial only; linear is also "n"
|
|
65707
|
+
// in caniemail but every Yahoo capture we hold has a bgcolor fallback
|
|
65708
|
+
// under it, so it is unmeasured. Probe a fallback-less one before adding.
|
|
65709
|
+
dropValues: /radial-gradient\(/i,
|
|
65704
65710
|
// Real Yahoo web drew foodpanda's `url(...) center / cover` logos at their
|
|
65705
65711
|
// 236px and its `0% 0% / 100% 100%` coupon at the picture's own size,
|
|
65706
65712
|
// cropped to the cell (emailens agreement run, 2026-10-28).
|
|
@@ -65786,7 +65792,10 @@ var CLIENT_CONFIGS = {
|
|
|
65786
65792
|
inlineAndStripStyles: false,
|
|
65787
65793
|
stripExternalStylesheets: true,
|
|
65788
65794
|
stripForms: true,
|
|
65789
|
-
stripSvg: false
|
|
65795
|
+
stripSvg: false,
|
|
65796
|
+
// Real Proton web drew 9 of 9 -only <p>/<div><span> spacers at no
|
|
65797
|
+
// height (real-device runs _YHEeChhj-3_, Z2Hn_aEsftuG; preview ckKDNoBCeSKz).
|
|
65798
|
+
emptyNbspBlocks: true
|
|
65790
65799
|
},
|
|
65791
65800
|
"aol": {
|
|
65792
65801
|
id: "aol",
|
|
@@ -65868,8 +65877,9 @@ function applyStyleDrops($3, config) {
|
|
|
65868
65877
|
}
|
|
65869
65878
|
});
|
|
65870
65879
|
}
|
|
65871
|
-
const dropDeclarations = (ast
|
|
65872
|
-
if (!dropValues && !dropProperties) return;
|
|
65880
|
+
const dropDeclarations = (ast) => {
|
|
65881
|
+
if (!dropValues && !dropProperties) return false;
|
|
65882
|
+
let changed = false;
|
|
65873
65883
|
fy(ast, {
|
|
65874
65884
|
visit: "Declaration",
|
|
65875
65885
|
enter(node, item, list) {
|
|
@@ -65877,15 +65887,18 @@ function applyStyleDrops($3, config) {
|
|
|
65877
65887
|
if (dropProperties == null ? void 0 : dropProperties.test(node.property)) {
|
|
65878
65888
|
list.remove(item);
|
|
65879
65889
|
dropped.add(node.property);
|
|
65890
|
+
changed = true;
|
|
65880
65891
|
return;
|
|
65881
65892
|
}
|
|
65882
65893
|
const m2 = dropValues ? `${node.property}:${hy(node.value)}`.match(dropValues) : null;
|
|
65883
65894
|
if (m2) {
|
|
65884
65895
|
list.remove(item);
|
|
65885
65896
|
dropped.add(m2[0].replace(/\($/, "()"));
|
|
65897
|
+
changed = true;
|
|
65886
65898
|
}
|
|
65887
65899
|
}
|
|
65888
65900
|
});
|
|
65901
|
+
return changed;
|
|
65889
65902
|
};
|
|
65890
65903
|
$3("style").each((_3, el2) => {
|
|
65891
65904
|
let ast;
|
|
@@ -65924,7 +65937,7 @@ function applyStyleDrops($3, config) {
|
|
|
65924
65937
|
}
|
|
65925
65938
|
});
|
|
65926
65939
|
}
|
|
65927
|
-
dropDeclarations(ast
|
|
65940
|
+
dropDeclarations(ast);
|
|
65928
65941
|
$3(el2).text(hy(ast));
|
|
65929
65942
|
});
|
|
65930
65943
|
if (dropValues || dropProperties) {
|
|
@@ -65936,8 +65949,7 @@ function applyStyleDrops($3, config) {
|
|
|
65936
65949
|
} catch (e2) {
|
|
65937
65950
|
return;
|
|
65938
65951
|
}
|
|
65939
|
-
dropDeclarations(ast,
|
|
65940
|
-
$3(el2).attr("style", hy(ast));
|
|
65952
|
+
if (dropDeclarations(ast)) $3(el2).attr("style", hy(ast));
|
|
65941
65953
|
});
|
|
65942
65954
|
}
|
|
65943
65955
|
return [...dropped];
|
|
@@ -66049,6 +66061,12 @@ function applyTransformDom($3, html3, config, framework) {
|
|
|
66049
66061
|
$3(el2).replaceWith($3(el2).html() || "");
|
|
66050
66062
|
});
|
|
66051
66063
|
}
|
|
66064
|
+
if (config.emptyNbspBlocks) {
|
|
66065
|
+
$3("p, div, span").each((_3, el2) => {
|
|
66066
|
+
const $el = $3(el2);
|
|
66067
|
+
if ($el.children().length === 0 && /^[\s ]* [\s ]*$/.test($el.text())) $el.empty();
|
|
66068
|
+
});
|
|
66069
|
+
}
|
|
66052
66070
|
if (config.dropFormActions && $3("form").length > 0) {
|
|
66053
66071
|
warnings.push(makeWarning({
|
|
66054
66072
|
severity: "error",
|
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-56SQXQSC.js";
|
|
36
36
|
import "./chunk-ABDTBRVK.js";
|
|
37
37
|
import "./chunk-2AP7CT6R.js";
|
|
38
38
|
import "./chunk-NXBRJX3V.js";
|
|
@@ -35749,6 +35749,12 @@ h1 {
|
|
|
35749
35749
|
// An inline font-family naming a quoted font is dropped whole; <style>
|
|
35750
35750
|
// keeps it (2026-10-28, analyze.ts step 7).
|
|
35751
35751
|
valueStrips: [{ prop: "font-family", pattern: /['"]/ }],
|
|
35752
|
+
// A radial-gradient button drew as its flat background-color, inline and
|
|
35753
|
+
// from <style> alike (real-device capture of preview J9vFS4nm_LGl,
|
|
35754
|
+
// 2026-10-30; caniemail agrees). ponytail: radial only; linear is also "n"
|
|
35755
|
+
// in caniemail but every Yahoo capture we hold has a bgcolor fallback
|
|
35756
|
+
// under it, so it is unmeasured. Probe a fallback-less one before adding.
|
|
35757
|
+
dropValues: /radial-gradient\(/i,
|
|
35752
35758
|
// Real Yahoo web drew foodpanda's `url(...) center / cover` logos at their
|
|
35753
35759
|
// 236px and its `0% 0% / 100% 100%` coupon at the picture's own size,
|
|
35754
35760
|
// cropped to the cell (emailens agreement run, 2026-10-28).
|
|
@@ -35834,7 +35840,10 @@ h1 {
|
|
|
35834
35840
|
inlineAndStripStyles: false,
|
|
35835
35841
|
stripExternalStylesheets: true,
|
|
35836
35842
|
stripForms: true,
|
|
35837
|
-
stripSvg: false
|
|
35843
|
+
stripSvg: false,
|
|
35844
|
+
// Real Proton web drew 9 of 9 -only <p>/<div><span> spacers at no
|
|
35845
|
+
// height (real-device runs _YHEeChhj-3_, Z2Hn_aEsftuG; preview ckKDNoBCeSKz).
|
|
35846
|
+
emptyNbspBlocks: true
|
|
35838
35847
|
},
|
|
35839
35848
|
"aol": {
|
|
35840
35849
|
id: "aol",
|
|
@@ -35916,8 +35925,9 @@ h1 {
|
|
|
35916
35925
|
}
|
|
35917
35926
|
});
|
|
35918
35927
|
}
|
|
35919
|
-
const dropDeclarations = (ast
|
|
35920
|
-
if (!dropValues && !dropProperties) return;
|
|
35928
|
+
const dropDeclarations = (ast) => {
|
|
35929
|
+
if (!dropValues && !dropProperties) return false;
|
|
35930
|
+
let changed = false;
|
|
35921
35931
|
csstree3.walk(ast, {
|
|
35922
35932
|
visit: "Declaration",
|
|
35923
35933
|
enter(node, item, list) {
|
|
@@ -35925,15 +35935,18 @@ h1 {
|
|
|
35925
35935
|
if (dropProperties == null ? void 0 : dropProperties.test(node.property)) {
|
|
35926
35936
|
list.remove(item);
|
|
35927
35937
|
dropped.add(node.property);
|
|
35938
|
+
changed = true;
|
|
35928
35939
|
return;
|
|
35929
35940
|
}
|
|
35930
35941
|
const m = dropValues ? `${node.property}:${csstree3.generate(node.value)}`.match(dropValues) : null;
|
|
35931
35942
|
if (m) {
|
|
35932
35943
|
list.remove(item);
|
|
35933
35944
|
dropped.add(m[0].replace(/\($/, "()"));
|
|
35945
|
+
changed = true;
|
|
35934
35946
|
}
|
|
35935
35947
|
}
|
|
35936
35948
|
});
|
|
35949
|
+
return changed;
|
|
35937
35950
|
};
|
|
35938
35951
|
$("style").each((_, el) => {
|
|
35939
35952
|
let ast;
|
|
@@ -35972,7 +35985,7 @@ h1 {
|
|
|
35972
35985
|
}
|
|
35973
35986
|
});
|
|
35974
35987
|
}
|
|
35975
|
-
dropDeclarations(ast
|
|
35988
|
+
dropDeclarations(ast);
|
|
35976
35989
|
$(el).text(csstree3.generate(ast));
|
|
35977
35990
|
});
|
|
35978
35991
|
if (dropValues || dropProperties) {
|
|
@@ -35984,8 +35997,7 @@ h1 {
|
|
|
35984
35997
|
} catch (e) {
|
|
35985
35998
|
return;
|
|
35986
35999
|
}
|
|
35987
|
-
dropDeclarations(ast,
|
|
35988
|
-
$(el).attr("style", csstree3.generate(ast));
|
|
36000
|
+
if (dropDeclarations(ast)) $(el).attr("style", csstree3.generate(ast));
|
|
35989
36001
|
});
|
|
35990
36002
|
}
|
|
35991
36003
|
return [...dropped];
|
|
@@ -36100,6 +36112,12 @@ h1 {
|
|
|
36100
36112
|
$(el).replaceWith($(el).html() || "");
|
|
36101
36113
|
});
|
|
36102
36114
|
}
|
|
36115
|
+
if (config.emptyNbspBlocks) {
|
|
36116
|
+
$("p, div, span").each((_, el) => {
|
|
36117
|
+
const $el = $(el);
|
|
36118
|
+
if ($el.children().length === 0 && /^[\s ]* [\s ]*$/.test($el.text())) $el.empty();
|
|
36119
|
+
});
|
|
36120
|
+
}
|
|
36103
36121
|
if (config.dropFormActions && $("form").length > 0) {
|
|
36104
36122
|
warnings.push(makeWarning({
|
|
36105
36123
|
severity: "error",
|
|
@@ -42955,7 +42973,7 @@ Href: ${href}`
|
|
|
42955
42973
|
// package.json
|
|
42956
42974
|
var package_default = {
|
|
42957
42975
|
name: "@emailens/cli",
|
|
42958
|
-
version: "0.13.
|
|
42976
|
+
version: "0.13.10",
|
|
42959
42977
|
description: "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
42960
42978
|
type: "module",
|
|
42961
42979
|
bin: {
|
|
@@ -42996,7 +43014,7 @@ var package_default = {
|
|
|
42996
43014
|
},
|
|
42997
43015
|
devDependencies: {
|
|
42998
43016
|
"@anthropic-ai/sdk": "^0.52.0",
|
|
42999
|
-
"@emailens/engine": "^0.18.
|
|
43017
|
+
"@emailens/engine": "^0.18.12",
|
|
43000
43018
|
"@types/bun": "^1.4.0",
|
|
43001
43019
|
"@types/mjml": "^4.7.4",
|
|
43002
43020
|
"@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.10",
|
|
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.12",
|
|
45
45
|
"@types/bun": "^1.4.0",
|
|
46
46
|
"@types/mjml": "^4.7.4",
|
|
47
47
|
"@types/node": "^25.9.5",
|