@emailens/cli 0.13.16 → 0.13.17
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-FFVMVESX.js → chunk-ICIM22UE.js} +20 -11
- package/dist/index.js +23 -14
- package/dist/test.js +1 -1
- package/package.json +84 -84
|
@@ -65882,6 +65882,13 @@ var CLIENT_CONFIGS = {
|
|
|
65882
65882
|
{ prop: "background", pattern: /linear-gradient|radial-gradient|url\(/ },
|
|
65883
65883
|
{ prop: "background-image", pattern: /linear-gradient|radial-gradient|url\(/ }
|
|
65884
65884
|
],
|
|
65885
|
+
// The same in <style> blocks: a `.mh-cta{background-image:radial-gradient}`
|
|
65886
|
+
// rule drew a magenta box in the sim where real Outlook Classic drew no
|
|
65887
|
+
// fill (real-device capture of preview J9vFS4nm_LGl, 2026-11-06).
|
|
65888
|
+
// ponytail: background-image only; a `background:` shorthand in <style>
|
|
65889
|
+
// still draws (it may carry the fallback colour Word keeps). Split it like
|
|
65890
|
+
// backgroundShorthandColor when a capture shows one.
|
|
65891
|
+
dropValues: /^background-image:.*(?:linear-gradient|radial-gradient|url)\(/,
|
|
65885
65892
|
inlineAndStripStyles: false,
|
|
65886
65893
|
stripExternalStylesheets: false,
|
|
65887
65894
|
stripForms: false,
|
|
@@ -66564,19 +66571,21 @@ function transformForAllClients(html3, framework) {
|
|
|
66564
66571
|
}
|
|
66565
66572
|
return clientIds.map((clientId) => {
|
|
66566
66573
|
const config = CLIENT_CONFIGS[clientId];
|
|
66567
|
-
const dropSource = prepareDropSource(html3, config);
|
|
66568
|
-
if (dropSource !== html3) {
|
|
66569
|
-
const own = downlevelCSS(dropSource);
|
|
66570
|
-
const result2 = applyTransformDom(load(own), own, config, framework);
|
|
66571
|
-
result2.warnings.unshift(...dropWarnings(html3, config, clientId, framework));
|
|
66572
|
-
return result2;
|
|
66573
|
-
}
|
|
66574
66574
|
const wordEngine = isWordEngineClient(clientId) && hasOutlookBranch;
|
|
66575
66575
|
const ownSource = isWordEngineClient(clientId) && ownWordSource;
|
|
66576
|
-
const
|
|
66577
|
-
const
|
|
66578
|
-
|
|
66579
|
-
|
|
66576
|
+
const raw = ownSource ? wordRaw : html3;
|
|
66577
|
+
const dropSource = prepareDropSource(raw, config);
|
|
66578
|
+
let result;
|
|
66579
|
+
if (dropSource !== raw) {
|
|
66580
|
+
const own = downlevelCSS(dropSource);
|
|
66581
|
+
result = applyTransformDom(load(own), own, config, framework);
|
|
66582
|
+
result.warnings.unshift(...dropWarnings(raw, config, clientId, framework));
|
|
66583
|
+
} else {
|
|
66584
|
+
const source = ownSource ? outlookSource : downleveled;
|
|
66585
|
+
const parsedDom = ownSource ? outlookDom : baseDom;
|
|
66586
|
+
const clientDom = lastClientForSource.get(parsedDom) === clientId ? parsedDom : load(parsedDom.root().clone().toArray()[0]);
|
|
66587
|
+
result = applyTransformDom(clientDom, source, config, framework);
|
|
66588
|
+
}
|
|
66580
66589
|
if (wordEngine) result.html = vmlToCss(result.html);
|
|
66581
66590
|
if (isWordEngineClient(clientId)) result.html = applyMsoHide(result.html);
|
|
66582
66591
|
return result;
|
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-ICIM22UE.js";
|
|
36
36
|
import "./chunk-ABDTBRVK.js";
|
|
37
37
|
import "./chunk-2AP7CT6R.js";
|
|
38
38
|
import "./chunk-NXBRJX3V.js";
|
|
@@ -35930,6 +35930,13 @@ h1 {
|
|
|
35930
35930
|
{ prop: "background", pattern: /linear-gradient|radial-gradient|url\(/ },
|
|
35931
35931
|
{ prop: "background-image", pattern: /linear-gradient|radial-gradient|url\(/ }
|
|
35932
35932
|
],
|
|
35933
|
+
// The same in <style> blocks: a `.mh-cta{background-image:radial-gradient}`
|
|
35934
|
+
// rule drew a magenta box in the sim where real Outlook Classic drew no
|
|
35935
|
+
// fill (real-device capture of preview J9vFS4nm_LGl, 2026-11-06).
|
|
35936
|
+
// ponytail: background-image only; a `background:` shorthand in <style>
|
|
35937
|
+
// still draws (it may carry the fallback colour Word keeps). Split it like
|
|
35938
|
+
// backgroundShorthandColor when a capture shows one.
|
|
35939
|
+
dropValues: /^background-image:.*(?:linear-gradient|radial-gradient|url)\(/,
|
|
35933
35940
|
inlineAndStripStyles: false,
|
|
35934
35941
|
stripExternalStylesheets: false,
|
|
35935
35942
|
stripForms: false,
|
|
@@ -36648,19 +36655,21 @@ h1 {
|
|
|
36648
36655
|
}
|
|
36649
36656
|
return clientIds.map((clientId) => {
|
|
36650
36657
|
const config = CLIENT_CONFIGS[clientId];
|
|
36651
|
-
const dropSource = prepareDropSource(html, config);
|
|
36652
|
-
if (dropSource !== html) {
|
|
36653
|
-
const own = downlevelCSS(dropSource);
|
|
36654
|
-
const result2 = applyTransformDom(cheerio3.load(own), own, config, framework);
|
|
36655
|
-
result2.warnings.unshift(...dropWarnings(html, config, clientId, framework));
|
|
36656
|
-
return result2;
|
|
36657
|
-
}
|
|
36658
36658
|
const wordEngine = isWordEngineClient(clientId) && hasOutlookBranch;
|
|
36659
36659
|
const ownSource = isWordEngineClient(clientId) && ownWordSource;
|
|
36660
|
-
const
|
|
36661
|
-
const
|
|
36662
|
-
|
|
36663
|
-
|
|
36660
|
+
const raw = ownSource ? wordRaw : html;
|
|
36661
|
+
const dropSource = prepareDropSource(raw, config);
|
|
36662
|
+
let result;
|
|
36663
|
+
if (dropSource !== raw) {
|
|
36664
|
+
const own = downlevelCSS(dropSource);
|
|
36665
|
+
result = applyTransformDom(cheerio3.load(own), own, config, framework);
|
|
36666
|
+
result.warnings.unshift(...dropWarnings(raw, config, clientId, framework));
|
|
36667
|
+
} else {
|
|
36668
|
+
const source = ownSource ? outlookSource : downleveled;
|
|
36669
|
+
const parsedDom = ownSource ? outlookDom : baseDom;
|
|
36670
|
+
const clientDom = lastClientForSource.get(parsedDom) === clientId ? parsedDom : cheerio3.load(parsedDom.root().clone().toArray()[0]);
|
|
36671
|
+
result = applyTransformDom(clientDom, source, config, framework);
|
|
36672
|
+
}
|
|
36664
36673
|
if (wordEngine) result.html = vmlToCss(result.html);
|
|
36665
36674
|
if (isWordEngineClient(clientId)) result.html = applyMsoHide(result.html);
|
|
36666
36675
|
return result;
|
|
@@ -43432,7 +43441,7 @@ Href: ${href}`
|
|
|
43432
43441
|
// package.json
|
|
43433
43442
|
var package_default = {
|
|
43434
43443
|
name: "@emailens/cli",
|
|
43435
|
-
version: "0.13.
|
|
43444
|
+
version: "0.13.17",
|
|
43436
43445
|
description: "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
43437
43446
|
type: "module",
|
|
43438
43447
|
bin: {
|
|
@@ -43473,7 +43482,7 @@ var package_default = {
|
|
|
43473
43482
|
},
|
|
43474
43483
|
devDependencies: {
|
|
43475
43484
|
"@anthropic-ai/sdk": "^0.52.0",
|
|
43476
|
-
"@emailens/engine": "^0.18.
|
|
43485
|
+
"@emailens/engine": "^0.18.19",
|
|
43477
43486
|
"@types/bun": "^1.4.0",
|
|
43478
43487
|
"@types/mjml": "^4.7.4",
|
|
43479
43488
|
"@types/node": "^25.9.5",
|
package/dist/test.js
CHANGED
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@emailens/cli",
|
|
3
|
-
"version": "0.13.
|
|
4
|
-
"description": "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"emailens": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./test": {
|
|
15
|
-
"types": "./dist/test.d.ts",
|
|
16
|
-
"import": "./dist/test.js"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"main": "./dist/index.js",
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"files": [
|
|
22
|
-
"dist",
|
|
23
|
-
"LICENSE"
|
|
24
|
-
],
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build": "tsup",
|
|
27
|
-
"dev": "tsup --watch",
|
|
28
|
-
"start": "bun run dist/index.js",
|
|
29
|
-
"typecheck": "tsc --noEmit",
|
|
30
|
-
"test": "bun test",
|
|
31
|
-
"prepublishOnly": "bun run build"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"playwright-core": "^1.62.1"
|
|
36
|
-
},
|
|
37
|
-
"peerDependenciesMeta": {
|
|
38
|
-
"playwright-core": {
|
|
39
|
-
"optional": true
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@anthropic-ai/sdk": "^0.52.0",
|
|
44
|
-
"@emailens/engine": "^0.18.
|
|
45
|
-
"@types/bun": "^1.4.0",
|
|
46
|
-
"@types/mjml": "^4.7.4",
|
|
47
|
-
"@types/node": "^25.9.5",
|
|
48
|
-
"bun-types": "^1.4.0",
|
|
49
|
-
"citty": "^0.1.6",
|
|
50
|
-
"cli-table3": "^0.6.5",
|
|
51
|
-
"ora": "^8.2.0",
|
|
52
|
-
"picocolors": "^1.1.1",
|
|
53
|
-
"playwright-core": "^1.62.1",
|
|
54
|
-
"tsup": "^8.5.1",
|
|
55
|
-
"typescript": "^5.9.3"
|
|
56
|
-
},
|
|
57
|
-
"keywords": [
|
|
58
|
-
"email",
|
|
59
|
-
"html-email",
|
|
60
|
-
"css",
|
|
61
|
-
"compatibility",
|
|
62
|
-
"cli",
|
|
63
|
-
"gmail",
|
|
64
|
-
"outlook",
|
|
65
|
-
"apple-mail",
|
|
66
|
-
"email-testing",
|
|
67
|
-
"dark-mode",
|
|
68
|
-
"mjml",
|
|
69
|
-
"maizzle",
|
|
70
|
-
"react-email"
|
|
71
|
-
],
|
|
72
|
-
"license": "MIT",
|
|
73
|
-
"repository": {
|
|
74
|
-
"type": "git",
|
|
75
|
-
"url": "git+https://github.com/emailens/cli.git"
|
|
76
|
-
},
|
|
77
|
-
"engines": {
|
|
78
|
-
"node": ">=18"
|
|
79
|
-
},
|
|
80
|
-
"homepage": "https://github.com/emailens/cli#readme",
|
|
81
|
-
"bugs": {
|
|
82
|
-
"url": "https://github.com/emailens/cli/issues"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@emailens/cli",
|
|
3
|
+
"version": "0.13.17",
|
|
4
|
+
"description": "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"emailens": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./test": {
|
|
15
|
+
"types": "./dist/test.d.ts",
|
|
16
|
+
"import": "./dist/test.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsup",
|
|
27
|
+
"dev": "tsup --watch",
|
|
28
|
+
"start": "bun run dist/index.js",
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"test": "bun test",
|
|
31
|
+
"prepublishOnly": "bun run build"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"playwright-core": "^1.62.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"playwright-core": {
|
|
39
|
+
"optional": true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@anthropic-ai/sdk": "^0.52.0",
|
|
44
|
+
"@emailens/engine": "^0.18.19",
|
|
45
|
+
"@types/bun": "^1.4.0",
|
|
46
|
+
"@types/mjml": "^4.7.4",
|
|
47
|
+
"@types/node": "^25.9.5",
|
|
48
|
+
"bun-types": "^1.4.0",
|
|
49
|
+
"citty": "^0.1.6",
|
|
50
|
+
"cli-table3": "^0.6.5",
|
|
51
|
+
"ora": "^8.2.0",
|
|
52
|
+
"picocolors": "^1.1.1",
|
|
53
|
+
"playwright-core": "^1.62.1",
|
|
54
|
+
"tsup": "^8.5.1",
|
|
55
|
+
"typescript": "^5.9.3"
|
|
56
|
+
},
|
|
57
|
+
"keywords": [
|
|
58
|
+
"email",
|
|
59
|
+
"html-email",
|
|
60
|
+
"css",
|
|
61
|
+
"compatibility",
|
|
62
|
+
"cli",
|
|
63
|
+
"gmail",
|
|
64
|
+
"outlook",
|
|
65
|
+
"apple-mail",
|
|
66
|
+
"email-testing",
|
|
67
|
+
"dark-mode",
|
|
68
|
+
"mjml",
|
|
69
|
+
"maizzle",
|
|
70
|
+
"react-email"
|
|
71
|
+
],
|
|
72
|
+
"license": "MIT",
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "git+https://github.com/emailens/cli.git"
|
|
76
|
+
},
|
|
77
|
+
"engines": {
|
|
78
|
+
"node": ">=18"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://github.com/emailens/cli#readme",
|
|
81
|
+
"bugs": {
|
|
82
|
+
"url": "https://github.com/emailens/cli/issues"
|
|
83
|
+
}
|
|
84
|
+
}
|