@emailens/cli 0.13.6 → 0.13.7

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.
@@ -67881,6 +67881,14 @@ function checkVml(html3, options) {
67881
67881
  detail: `Outlook needs the matching </v:${tag.name}>, usually in a later conditional-comment block. Without it the shape swallows the rest of the email.`
67882
67882
  }, locAt(source, tag.offset, tag.length)));
67883
67883
  }
67884
+ if (/<head[\s>]/i.test(html3) && !/<o:PixelsPerInch[\s>]/i.test(html3)) {
67885
+ add2(issues, seen, "ppi", withLoc({
67886
+ rule: "vml-pixels-per-inch",
67887
+ severity: "warning",
67888
+ message: `This email uses VML but does not declare <o:PixelsPerInch>96</o:PixelsPerInch>.`,
67889
+ detail: `Verified in Outlook Classic at 125% display scaling, common on Windows laptops: VML stays at its pixel size while the text grows. A 203px button lost the last word of its label, pictures came out too small and shapes stopped lining up. At 100% nothing looks wrong, so previews miss it. Add xmlns:o="urn:schemas-microsoft-com:office:office" to <html> and put this in <head>: <!--[if mso]><xml><o:OfficeDocumentSettings><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->`
67890
+ }, locAt(source, tags[0].offset, tags[0].length)));
67891
+ }
67884
67892
  return { hasVml: true, issues };
67885
67893
  }
67886
67894
  var WORD = "outlook-windows-legacy";
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  simulateDarkMode,
33
33
  toFramework,
34
34
  transformForAllClients
35
- } from "./chunk-SBRXUNV5.js";
35
+ } from "./chunk-TRP6HLMH.js";
36
36
  import "./chunk-ABDTBRVK.js";
37
37
  import "./chunk-2AP7CT6R.js";
38
38
  import "./chunk-NXBRJX3V.js";
@@ -37972,6 +37972,14 @@ h1 {
37972
37972
  detail: `Outlook needs the matching </v:${tag.name}>, usually in a later conditional-comment block. Without it the shape swallows the rest of the email.`
37973
37973
  }, locAt(source, tag.offset, tag.length)));
37974
37974
  }
37975
+ if (/<head[\s>]/i.test(html) && !/<o:PixelsPerInch[\s>]/i.test(html)) {
37976
+ add(issues, seen, "ppi", withLoc({
37977
+ rule: "vml-pixels-per-inch",
37978
+ severity: "warning",
37979
+ message: `This email uses VML but does not declare <o:PixelsPerInch>96</o:PixelsPerInch>.`,
37980
+ detail: `Verified in Outlook Classic at 125% display scaling, common on Windows laptops: VML stays at its pixel size while the text grows. A 203px button lost the last word of its label, pictures came out too small and shapes stopped lining up. At 100% nothing looks wrong, so previews miss it. Add xmlns:o="urn:schemas-microsoft-com:office:office" to <html> and put this in <head>: <!--[if mso]><xml><o:OfficeDocumentSettings><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->`
37981
+ }, locAt(source, tags[0].offset, tags[0].length)));
37982
+ }
37975
37983
  return { hasVml: true, issues };
37976
37984
  }
37977
37985
  var WORD = "outlook-windows-legacy";
@@ -42941,7 +42949,7 @@ Href: ${href}`
42941
42949
  // package.json
42942
42950
  var package_default = {
42943
42951
  name: "@emailens/cli",
42944
- version: "0.13.6",
42952
+ version: "0.13.7",
42945
42953
  description: "CLI tool for email compatibility analysis: lint, preview and export HTML, MJML, Maizzle and React Email rendering across 21 email clients.",
42946
42954
  type: "module",
42947
42955
  bin: {
@@ -42982,7 +42990,7 @@ var package_default = {
42982
42990
  },
42983
42991
  devDependencies: {
42984
42992
  "@anthropic-ai/sdk": "^0.52.0",
42985
- "@emailens/engine": "^0.18.8",
42993
+ "@emailens/engine": "^0.18.9",
42986
42994
  "@types/bun": "^1.4.0",
42987
42995
  "@types/mjml": "^4.7.4",
42988
42996
  "@types/node": "^25.9.5",
package/dist/test.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  auditEmail,
6
6
  flattenToLintIssues,
7
7
  loadProjectConfig
8
- } from "./chunk-SBRXUNV5.js";
8
+ } from "./chunk-TRP6HLMH.js";
9
9
  import "./chunk-ABDTBRVK.js";
10
10
  import "./chunk-2AP7CT6R.js";
11
11
  import "./chunk-NXBRJX3V.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailens/cli",
3
- "version": "0.13.6",
3
+ "version": "0.13.7",
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.8",
44
+ "@emailens/engine": "^0.18.9",
45
45
  "@types/bun": "^1.4.0",
46
46
  "@types/mjml": "^4.7.4",
47
47
  "@types/node": "^25.9.5",