@emailens/cli 0.13.7 → 0.13.9
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.
|
@@ -63754,9 +63754,10 @@ function dropWordUnknownColors(html3) {
|
|
|
63754
63754
|
function markHiddenCells(html3) {
|
|
63755
63755
|
if (!/display\s*:\s*none/i.test(html3)) return html3;
|
|
63756
63756
|
return html3.replace(
|
|
63757
|
-
|
|
63757
|
+
/<v:textbox\b[\s\S]*?<\/v:textbox>|(<(?:td|th|tr|span|div|table)\b[^>]*?\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,
|
|
63758
63758
|
(whole, lead, dq, sq) => {
|
|
63759
63759
|
var _a22;
|
|
63760
|
+
if (lead === void 0) return whole;
|
|
63760
63761
|
const style = (_a22 = dq != null ? dq : sq) != null ? _a22 : "";
|
|
63761
63762
|
if (!/display\s*:\s*none/i.test(style) || /mso-hide\s*:/i.test(style)) return whole;
|
|
63762
63763
|
const quote = dq === void 0 ? "'" : '"';
|
|
@@ -65655,14 +65656,19 @@ var CLIENT_CONFIGS = {
|
|
|
65655
65656
|
stripMode: "strip",
|
|
65656
65657
|
stripStyleAnimations: true,
|
|
65657
65658
|
dropSelectors: /:nth-child|:nth-last-child|:nth-of-type|:nth-last-of-type|:not\(|:has\(|\[data-|::?before|::?after|(?:[.#][\w-]+|\])(?:\[[^\]]*\])*:(?:first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|link|visited|checked|hover|focus|active|target)/,
|
|
65658
|
-
|
|
65659
|
+
// No web font either: a Google Fonts <link>, an @import and a remote
|
|
65660
|
+
// @font-face all fell back to the stack's next font on real Outlook for
|
|
65661
|
+
// Mac, where Apple Mail on the same Mac drew them (real-device runs
|
|
65662
|
+
// 6UOu1JWi1l9C, Z2Hn_aEsftuG, _YHEeChhj-3_; caniemail agrees). The
|
|
65663
|
+
// <link> goes with stripExternalStylesheets below.
|
|
65664
|
+
dropAtRules: /^@supports\b|^@media\s+(?:only\s+)?[a-z]+\s*$|^@media\b.*[<>=]|^@font-face\b|^@import\b/i,
|
|
65659
65665
|
dropValues: /minmax\(|repeat\(|conic-gradient\(|linear-gradient\(|radial-gradient\(|var\(|calc\(|min\(|max\(|clamp\(|\b(?:hsla?|hwb|lab|lch|oklab|oklch|color)\(|^position:\s*(?:relative|absolute|fixed)/,
|
|
65660
65666
|
dropProperties: /^(?:transform|transition(?:-[a-z-]+)?|animation(?:-[a-z-]+)?|text-shadow|filter|clip-path|gap|row-gap|(?:padding|margin|border|inset)-(?:inline|block)(?:-[a-z-]+)?|(?:min-|max-)?(?:inline|block)-size)$/,
|
|
65661
65667
|
dropNesting: true,
|
|
65662
65668
|
dropElements: "picture source",
|
|
65663
65669
|
dropAttributes: /^srcset$/,
|
|
65664
65670
|
inlineAndStripStyles: false,
|
|
65665
|
-
stripExternalStylesheets:
|
|
65671
|
+
stripExternalStylesheets: true,
|
|
65666
65672
|
stripForms: false,
|
|
65667
65673
|
stripSvg: true
|
|
65668
65674
|
},
|
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-VC36VNI3.js";
|
|
36
36
|
import "./chunk-ABDTBRVK.js";
|
|
37
37
|
import "./chunk-2AP7CT6R.js";
|
|
38
38
|
import "./chunk-NXBRJX3V.js";
|
|
@@ -33792,9 +33792,10 @@ h1 {
|
|
|
33792
33792
|
function markHiddenCells(html) {
|
|
33793
33793
|
if (!/display\s*:\s*none/i.test(html)) return html;
|
|
33794
33794
|
return html.replace(
|
|
33795
|
-
|
|
33795
|
+
/<v:textbox\b[\s\S]*?<\/v:textbox>|(<(?:td|th|tr|span|div|table)\b[^>]*?\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,
|
|
33796
33796
|
(whole, lead, dq, sq) => {
|
|
33797
33797
|
var _a2;
|
|
33798
|
+
if (lead === void 0) return whole;
|
|
33798
33799
|
const style = (_a2 = dq != null ? dq : sq) != null ? _a2 : "";
|
|
33799
33800
|
if (!/display\s*:\s*none/i.test(style) || /mso-hide\s*:/i.test(style)) return whole;
|
|
33800
33801
|
const quote = dq === void 0 ? "'" : '"';
|
|
@@ -35703,14 +35704,19 @@ h1 {
|
|
|
35703
35704
|
stripMode: "strip",
|
|
35704
35705
|
stripStyleAnimations: true,
|
|
35705
35706
|
dropSelectors: /:nth-child|:nth-last-child|:nth-of-type|:nth-last-of-type|:not\(|:has\(|\[data-|::?before|::?after|(?:[.#][\w-]+|\])(?:\[[^\]]*\])*:(?:first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|link|visited|checked|hover|focus|active|target)/,
|
|
35706
|
-
|
|
35707
|
+
// No web font either: a Google Fonts <link>, an @import and a remote
|
|
35708
|
+
// @font-face all fell back to the stack's next font on real Outlook for
|
|
35709
|
+
// Mac, where Apple Mail on the same Mac drew them (real-device runs
|
|
35710
|
+
// 6UOu1JWi1l9C, Z2Hn_aEsftuG, _YHEeChhj-3_; caniemail agrees). The
|
|
35711
|
+
// <link> goes with stripExternalStylesheets below.
|
|
35712
|
+
dropAtRules: /^@supports\b|^@media\s+(?:only\s+)?[a-z]+\s*$|^@media\b.*[<>=]|^@font-face\b|^@import\b/i,
|
|
35707
35713
|
dropValues: /minmax\(|repeat\(|conic-gradient\(|linear-gradient\(|radial-gradient\(|var\(|calc\(|min\(|max\(|clamp\(|\b(?:hsla?|hwb|lab|lch|oklab|oklch|color)\(|^position:\s*(?:relative|absolute|fixed)/,
|
|
35708
35714
|
dropProperties: /^(?:transform|transition(?:-[a-z-]+)?|animation(?:-[a-z-]+)?|text-shadow|filter|clip-path|gap|row-gap|(?:padding|margin|border|inset)-(?:inline|block)(?:-[a-z-]+)?|(?:min-|max-)?(?:inline|block)-size)$/,
|
|
35709
35715
|
dropNesting: true,
|
|
35710
35716
|
dropElements: "picture source",
|
|
35711
35717
|
dropAttributes: /^srcset$/,
|
|
35712
35718
|
inlineAndStripStyles: false,
|
|
35713
|
-
stripExternalStylesheets:
|
|
35719
|
+
stripExternalStylesheets: true,
|
|
35714
35720
|
stripForms: false,
|
|
35715
35721
|
stripSvg: true
|
|
35716
35722
|
},
|
|
@@ -42949,7 +42955,7 @@ Href: ${href}`
|
|
|
42949
42955
|
// package.json
|
|
42950
42956
|
var package_default = {
|
|
42951
42957
|
name: "@emailens/cli",
|
|
42952
|
-
version: "0.13.
|
|
42958
|
+
version: "0.13.9",
|
|
42953
42959
|
description: "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
42954
42960
|
type: "module",
|
|
42955
42961
|
bin: {
|
|
@@ -42990,7 +42996,7 @@ var package_default = {
|
|
|
42990
42996
|
},
|
|
42991
42997
|
devDependencies: {
|
|
42992
42998
|
"@anthropic-ai/sdk": "^0.52.0",
|
|
42993
|
-
"@emailens/engine": "^0.18.
|
|
42999
|
+
"@emailens/engine": "^0.18.11",
|
|
42994
43000
|
"@types/bun": "^1.4.0",
|
|
42995
43001
|
"@types/mjml": "^4.7.4",
|
|
42996
43002
|
"@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.9",
|
|
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.11",
|
|
45
45
|
"@types/bun": "^1.4.0",
|
|
46
46
|
"@types/mjml": "^4.7.4",
|
|
47
47
|
"@types/node": "^25.9.5",
|